diff --git a/libretro-common/file/config_file.c b/libretro-common/file/config_file.c index ae8281a402..2ffeba4605 100644 --- a/libretro-common/file/config_file.c +++ b/libretro-common/file/config_file.c @@ -265,7 +265,7 @@ static char *strip_comment(char *str) char *strend = str + strlen(str); bool cut_comment = true; - while (*str) + while (!string_is_empty) { char *comment = NULL; char *literal = strchr(str, '\"');