Changeset - r6632:a08d664eb1ed
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-05-17 12:06:47
rubidium@openttd.org
(svn r9861) -Fix: null pointer derefence under MorphOS and AmigaOS.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/unix.cpp
Show inline comments
 
@@ -53,7 +53,7 @@ bool FiosIsRoot(const char *path)
 
#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
 
}
 

	
0 comments (0 inline, 0 general)