mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
Simplified condition in while
if `*ptr` value equals ' ', then condition `if(*ptr != '\0')` will always true
This commit is contained in:
parent
a75014c705
commit
cdc61bc206
@ -616,7 +616,7 @@ static bool make_proc_acpi_key_val(char **_ptr, char **_key, char **_val)
|
||||
|
||||
*(ptr++) = '\0'; /* terminate the key. */
|
||||
|
||||
while ((*ptr == ' ') && (*ptr != '\0'))
|
||||
while (*ptr == ' ')
|
||||
ptr++; /* skip whitespace. */
|
||||
|
||||
if (*ptr == '\0')
|
||||
|
Loading…
x
Reference in New Issue
Block a user