- added 0 length check to StripExtension.

This commit is contained in:
Christoph Oelckers 2020-02-03 22:12:36 +01:00
parent a90185bea9
commit 5d8f008140

View file

@ -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;