platform/win32.c
changeset 568 58a750d64f91
parent 516 65c524ddd5ab
child 596 381b6ca0dd85
--- a/platform/win32.c	Sun May 18 07:52:53 2003 +0000
+++ b/platform/win32.c	Thu May 22 04:01:19 2003 +0000
@@ -300,8 +300,8 @@
 
 char *__PHYSFS_platformCalcBaseDir(const char *argv0)
 {
-    if (strchr(argv0, '\\') != NULL)   /* default behaviour can handle this. */
-        return(NULL);
+    if ((argv0 != NULL) && (strchr(argv0, '\\') != NULL))
+        return(NULL); /* default behaviour can handle this. */
 
     return(getExePath(argv0));
 } /* __PHYSFS_platformCalcBaseDir */