From 9300313fce76900ebe500fc782247393b4d163ed Mon Sep 17 00:00:00 2001 From: radius Date: Mon, 23 May 2016 17:56:39 -0500 Subject: [PATCH] fix lockup this seems to fix a lockup that happens randomly on windows at startup, content load/content unload/controller hotplug --- libretro-common/file/config_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, '\"');