* lib/getlong.c: Do not check for NULL string but empty string.
This commit is contained in:
parent
08b4253001
commit
e8dd48ac09
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user