changeset 6632:366317684a80 draft

(svn r9861) -Fix: null pointer derefence under MorphOS and AmigaOS.
author rubidium <rubidium@openttd.org>
date Thu, 17 May 2007 12:06:47 +0000
parents 573917893d18
children c46002d96e2e
files src/unix.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/unix.cpp
+++ b/src/unix.cpp
@@ -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
 }