diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-29 16:30:20 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-29 16:30:20 +0000 |
commit | da02122bd4099394d80812b536071bf619e997b7 (patch) | |
tree | 5dc90cfefbb02c61faee53747c128b85db1d7a39 /main/nspr/nspr-4.7.0-prtime.patch | |
parent | fd0cf32e80cc193c56fabc8639e91bf022bc8b06 (diff) | |
download | aports-da02122bd4099394d80812b536071bf619e997b7.tar.bz2 aports-da02122bd4099394d80812b536071bf619e997b7.tar.xz |
main/nspr: moved from testing
Diffstat (limited to 'main/nspr/nspr-4.7.0-prtime.patch')
-rw-r--r-- | main/nspr/nspr-4.7.0-prtime.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/main/nspr/nspr-4.7.0-prtime.patch b/main/nspr/nspr-4.7.0-prtime.patch new file mode 100644 index 000000000..74d5534d5 --- /dev/null +++ b/main/nspr/nspr-4.7.0-prtime.patch @@ -0,0 +1,26 @@ +--- a/mozilla/nsprpub/pr/src/misc/prtime.c.orig 2007-09-14 19:41:08.000000000 +0200 ++++ b/mozilla/nsprpub/pr/src/misc/prtime.c 2007-09-14 19:42:17.000000000 +0200 +@@ -1536,7 +1536,7 @@ + case TT_EET: zone_offset = 2 * 60; break; + case TT_JST: zone_offset = 9 * 60; break; + default: +- PR_ASSERT (0); ++ return PR_FAILURE; + break; + } + } +@@ -1578,11 +1578,12 @@ + struct tm localTime; + time_t secs; + +- PR_ASSERT(result->tm_month > -1 && ++ if (!(result->tm_month > -1 && + result->tm_mday > 0 && + result->tm_hour > -1 && + result->tm_min > -1 && +- result->tm_sec > -1); ++ result->tm_sec > -1)) ++ return PR_FAILURE; + + /* + * To obtain time_t from a tm structure representing the local |