Check if name is empty first

This commit is contained in:
twinaphex 2016-10-26 06:01:26 +02:00
parent 85e2aeeaaf
commit d2cfc3cb17

View File

@ -386,7 +386,8 @@ static void setting_get_string_representation_uint_libretro_device(void *data,
} }
} }
strlcpy(s, name, len); if (!string_is_empty(name))
strlcpy(s, name, len);
} }
static void setting_get_string_representation_uint_analog_dpad_mode(void *data, static void setting_get_string_representation_uint_analog_dpad_mode(void *data,