mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
system_property_get - add goto error
This commit is contained in:
parent
63924971aa
commit
e5af70e091
@ -789,10 +789,7 @@ int system_property_get(const char *command, const char *args, char *value)
|
|||||||
pipe = popen(cmd, "r");
|
pipe = popen(cmd, "r");
|
||||||
|
|
||||||
if (!pipe)
|
if (!pipe)
|
||||||
{
|
goto error;
|
||||||
RARCH_ERR("Could not create pipe.\n");
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
curpos = value;
|
curpos = value;
|
||||||
|
|
||||||
@ -814,6 +811,10 @@ int system_property_get(const char *command, const char *args, char *value)
|
|||||||
pclose(pipe);
|
pclose(pipe);
|
||||||
|
|
||||||
return length;
|
return length;
|
||||||
|
|
||||||
|
error:
|
||||||
|
RARCH_ERR("Could not create pipe.\n");
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void frontend_android_get_name(char *s, size_t len)
|
static void frontend_android_get_name(char *s, size_t len)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user