Unverified Commit 7145007e authored by Libretro-Admin's avatar Libretro-Admin Committed by GitHub
Browse files

Merge pull request #22 from heitbaum/gcc11

libretro: fix ordered comparison of pointer with integer zero
parents 1aa6b6b3 0f6b2096
Pipeline #116525 failed with stage
in 1 minute and 31 seconds
...@@ -403,7 +403,7 @@ int loadconfig_old(struct uae_prefs *p, const char *orgpath) ...@@ -403,7 +403,7 @@ int loadconfig_old(struct uae_prefs *p, const char *orgpath)
strcpy(path, orgpath); strcpy(path, orgpath);
char *ptr = strstr(path, ".uae"); char *ptr = strstr(path, ".uae");
if(ptr > 0) if(ptr != 0)
{ {
*(ptr + 1) = '\0'; *(ptr + 1) = '\0';
strcat(path, "conf"); strcat(path, "conf");
......
...@@ -358,7 +358,7 @@ int target_cfgfile_load (struct uae_prefs *p, char *filename, int type, int isde ...@@ -358,7 +358,7 @@ int target_cfgfile_load (struct uae_prefs *p, char *filename, int type, int isde
discard_prefs(p, type); discard_prefs(p, type);
char *ptr = strstr(filename, ".uae"); char *ptr = strstr(filename, ".uae");
if(ptr > 0) if(ptr != 0)
{ {
int type = CONFIG_TYPE_HARDWARE | CONFIG_TYPE_HOST; int type = CONFIG_TYPE_HARDWARE | CONFIG_TYPE_HOST;
result = cfgfile_load(p, filename, &type, 0); result = cfgfile_load(p, filename, &type, 0);
...@@ -404,7 +404,7 @@ int check_configfile(char *file) ...@@ -404,7 +404,7 @@ int check_configfile(char *file)
strcpy(tmp, file); strcpy(tmp, file);
char *ptr = strstr(tmp, ".uae"); char *ptr = strstr(tmp, ".uae");
if(ptr > 0) if(ptr != 0)
{ {
*(ptr + 1) = '\0'; *(ptr + 1) = '\0';
strcat(tmp, "conf"); strcat(tmp, "conf");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment