Files
@ f2b9d04d0d05
Branch filter:
Location: ohnobinki_overlay/dev-libs/nspr/files/nspr-4.6.1-prtime.patch - annotation
f2b9d04d0d05
1003 B
text/x-diff
dev-util/boost-build: Initial import from Gentoo's Portage
e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 e23904a28631 | --- mozilla/nsprpub/pr/src/misc/prtime.c-orig 2004-04-25 10:01:01.000000000 -0500
+++ mozilla/nsprpub/pr/src/misc/prtime.c 2006-02-23 12:07:35.098166000 -0600
@@ -1509,7 +1509,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;
}
}
@@ -1551,11 +1551,12 @@
struct tm localTime;
time_t secs;
- PR_ASSERT(tm.tm_month > -1
+ if (!(tm.tm_month > -1
&& tm.tm_mday > 0
&& tm.tm_hour > -1
&& tm.tm_min > -1
- && tm.tm_sec > -1);
+ && tm.tm_sec > -1))
+ return PR_FAILURE;
/*
* To obtain time_t from a tm structure representing the local
|