From 475a3f5a6ee1703c8ad072a9141d18a0ba1559f1 Mon Sep 17 00:00:00 2001 From: dborth Date: Tue, 13 Oct 2009 07:28:58 +0000 Subject: [PATCH] --- source/ngc/fileop.cpp | 3 +++ 1 file changed, 3 insertions(+) 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)