src/unix.cpp
branchgamebalance
changeset 9911 0b8b245a2391
parent 9908 0fa543611bbe
child 9912 1ac8aac92385
--- a/src/unix.cpp	Wed Jun 13 11:17:30 2007 +0000
+++ b/src/unix.cpp	Wed Jun 13 11:45:14 2007 +0000
@@ -53,7 +53,7 @@
 #else
 	/* On MorphOS or AmigaOS paths look like: "Volume:directory/subdirectory" */
 	const char *s = strchr(path, ':');
-	return s[1] == '\0';
+	return s != NULL && s[1] == '\0';
 #endif
 }