mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-13 20:33:22 +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");
|
||||
|
||||
if (!pipe)
|
||||
{
|
||||
RARCH_ERR("Could not create pipe.\n");
|
||||
return 0;
|
||||
}
|
||||
goto error;
|
||||
|
||||
curpos = value;
|
||||
|
||||
@ -814,6 +811,10 @@ int system_property_get(const char *command, const char *args, char *value)
|
||||
pclose(pipe);
|
||||
|
||||
return length;
|
||||
|
||||
error:
|
||||
RARCH_ERR("Could not create pipe.\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void frontend_android_get_name(char *s, size_t len)
|
||||
|
Loading…
Reference in New Issue
Block a user