system_property_get - add goto error

This commit is contained in:
twinaphex 2015-11-14 19:52:12 +01:00
parent 63924971aa
commit e5af70e091

View File

@ -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)