mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
Silence a -Wnonnull warning
This commit is contained in:
parent
efacf637db
commit
649205178f
@ -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'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user