mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +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)
|
FString StripExtension(const char* path)
|
||||||
{
|
{
|
||||||
const char* src;
|
const char* src;
|
||||||
|
if (*path == 0) return "";
|
||||||
|
|
||||||
src = path + strlen(path) - 1;
|
src = path + strlen(path) - 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue