(video_shader_get_type_from_ext) remove strlen call

This commit is contained in:
LibretroAdmin 2022-08-27 14:29:37 +02:00
parent 19c72a413f
commit f34f4d060c

View File

@ -2025,7 +2025,7 @@ enum rarch_shader_type video_shader_get_type_from_ext(
if (string_is_empty(ext))
return RARCH_SHADER_NONE;
if (strlen(ext) > 1 && ext[0] == '.')
if ((ext[0] != '\0') && (ext[0] == '.') && (ext[1] != '\0'))
ext++;
if (is_preset)