mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-02 12:24:15 +00:00
(svn r9861) -Fix: null pointer derefence under MorphOS and AmigaOS.
This commit is contained in:
parent
042bcc0325
commit
aea6ef94bc
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user