diff --git a/source/ngc/fileop.cpp b/source/ngc/fileop.cpp index 4f74841..f887009 100644 --- a/source/ngc/fileop.cpp +++ b/source/ngc/fileop.cpp @@ -464,6 +464,9 @@ bool ChangeInterface(char * filepath, bool silent) void CreateAppPath(char * origpath) { + if(!origpath || origpath[0] == 0) + return; + char * path = strdup(origpath); // make a copy so we don't mess up original if(!path)