Silence a -Wnonnull warning

This commit is contained in:
orbea 2017-05-16 16:14:20 -07:00
parent efacf637db
commit 649205178f

View File

@ -900,6 +900,9 @@ static bool next_string(char **_ptr, char **_str)
static bool int_string(char *str, int *val)
{
if (!str)
return false;
char *endptr = NULL;
*val = (int) strtol(str, &endptr, 0);
return ((*str != '\0') && (*endptr == '\0'));