video_shader_get_type_from_ext - get rid of unnecessary strlen

This commit is contained in:
LibretroAdmin 2022-08-03 23:35:16 +02:00
parent c240340c91
commit 819337d5d4

View File

@ -1984,7 +1984,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] == '.' && ext[1] != '\0')
ext++;
if (is_preset)