mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
- added 0 length check to StripExtension.
This commit is contained in:
parent
a90185bea9
commit
5d8f008140
1 changed files with 1 additions and 0 deletions
|
@ -266,6 +266,7 @@ FString ExtractFileBase (const char *path, bool include_extension)
|
|||
FString StripExtension(const char* path)
|
||||
{
|
||||
const char* src;
|
||||
if (*path == 0) return "";
|
||||
|
||||
src = path + strlen(path) - 1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue