forked from mirror/OpenTTD
(svn r9861) -Fix: null pointer derefence under MorphOS and AmigaOS.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user