mirror of https://github.com/OpenTTD/OpenTTD
(svn r9861) -Fix: null pointer derefence under MorphOS and AmigaOS.
parent
042bcc0325
commit
aea6ef94bc
|
@ -53,7 +53,7 @@ bool FiosIsRoot(const char *path)
|
||||||
#else
|
#else
|
||||||
/* On MorphOS or AmigaOS paths look like: "Volume:directory/subdirectory" */
|
/* On MorphOS or AmigaOS paths look like: "Volume:directory/subdirectory" */
|
||||||
const char *s = strchr(path, ':');
|
const char *s = strchr(path, ':');
|
||||||
return s[1] == '\0';
|
return s != NULL && s[1] == '\0';
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue