[Pkg-shadow-commits] r2795 - in upstream/trunk: . lib
Nicolas FRANÇOIS
nekral-guest at alioth.debian.org
Fri Apr 24 23:27:12 UTC 2009
Author: nekral-guest
Date: 2009-04-24 23:27:12 +0000 (Fri, 24 Apr 2009)
New Revision: 2795
Modified:
upstream/trunk/ChangeLog
upstream/trunk/lib/getlong.c
Log:
* lib/getlong.c: Do not check for NULL string but empty string.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2009-04-24 23:26:31 UTC (rev 2794)
+++ upstream/trunk/ChangeLog 2009-04-24 23:27:12 UTC (rev 2795)
@@ -1,5 +1,9 @@
2009-04-25 Nicolas François <nicolas.francois at centraliens.net>
+ * lib/getlong.c: Do not check for NULL string but empty string.
+
+2009-04-25 Nicolas François <nicolas.francois at centraliens.net>
+
* lib/groupio.c: Updated splint annotations.
* lib/groupio.c: Added assert to help splint.
Modified: upstream/trunk/lib/getlong.c
===================================================================
--- upstream/trunk/lib/getlong.c 2009-04-24 23:26:31 UTC (rev 2794)
+++ upstream/trunk/lib/getlong.c 2009-04-24 23:27:12 UTC (rev 2795)
@@ -49,7 +49,7 @@
errno = 0;
val = strtol (numstr, &endptr, 0);
- if (('\0' == numstr) || ('\0' != *endptr) || (ERANGE == errno)) {
+ if (('\0' == *numstr) || ('\0' != *endptr) || (ERANGE == errno)) {
return 0;
}
More information about the Pkg-shadow-commits
mailing list