mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 00:32:46 +00:00
Merge pull request #4926 from orbea/Wnonnull
Silence a -Wnonnull warning
This commit is contained in:
commit
e6f5270c3d
@ -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