mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Change back to previous behavior
This commit is contained in:
parent
ac0b2799c5
commit
fd76c3b8b1
1 changed files with 3 additions and 2 deletions
|
@ -391,8 +391,9 @@ char *path_remove_extension(char *path)
|
|||
char *last = !string_is_empty(path)
|
||||
? (char*)strrchr(path_basename(path), '.') : NULL;
|
||||
if (!last)
|
||||
return path;
|
||||
*last = '\0';
|
||||
return NULL;
|
||||
if (*last)
|
||||
*last = '\0';
|
||||
return path;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue