diff --git a/source/ngc/fileop.cpp b/source/ngc/fileop.cpp index 1660c39..3e80033 100644 --- a/source/ngc/fileop.cpp +++ b/source/ngc/fileop.cpp @@ -466,6 +466,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)