Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
uae4arm-libretro
Commits
7145007e
Unverified
Commit
7145007e
authored
Apr 12, 2022
by
Libretro-Admin
Committed by
GitHub
Apr 12, 2022
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
Changes
2
Pipelines
73
Hide whitespace changes
Inline
Side-by-side
libretro/osdep/menu/menu_config.cpp
View file @
7145007e
...
...
@@ -403,7 +403,7 @@ int loadconfig_old(struct uae_prefs *p, const char *orgpath)
strcpy
(
path
,
orgpath
);
char
*
ptr
=
strstr
(
path
,
".uae"
);
if
(
ptr
>
0
)
if
(
ptr
!=
0
)
{
*
(
ptr
+
1
)
=
'\0'
;
strcat
(
path
,
"conf"
);
...
...
libretro/osdep/pandora.cpp
View file @
7145007e
...
...
@@ -358,7 +358,7 @@ int target_cfgfile_load (struct uae_prefs *p, char *filename, int type, int isde
discard_prefs
(
p
,
type
);
char
*
ptr
=
strstr
(
filename
,
".uae"
);
if
(
ptr
>
0
)
if
(
ptr
!=
0
)
{
int
type
=
CONFIG_TYPE_HARDWARE
|
CONFIG_TYPE_HOST
;
result
=
cfgfile_load
(
p
,
filename
,
&
type
,
0
);
...
...
@@ -404,7 +404,7 @@ int check_configfile(char *file)
strcpy
(
tmp
,
file
);
char
*
ptr
=
strstr
(
tmp
,
".uae"
);
if
(
ptr
>
0
)
if
(
ptr
!=
0
)
{
*
(
ptr
+
1
)
=
'\0'
;
strcat
(
tmp
,
"conf"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment