* lib/getlong.c: Do not check for NULL string but empty string.

This commit is contained in:
nekral-guest 2009-04-24 23:27:12 +00:00
parent 08b4253001
commit e8dd48ac09
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-04-25 Nicolas François <nicolas.francois@centraliens.net>
* lib/getlong.c: Do not check for NULL string but empty string.
2009-04-25 Nicolas François <nicolas.francois@centraliens.net>
* lib/groupio.c: Updated splint annotations.

View File

@ -49,7 +49,7 @@ int getlong (const char *numstr, /*@out@*/long int *result)
errno = 0;
val = strtol (numstr, &endptr, 0);
if (('\0' == numstr) || ('\0' != *endptr) || (ERANGE == errno)) {
if (('\0' == *numstr) || ('\0' != *endptr) || (ERANGE == errno)) {
return 0;
}