diff options
author | rubidium <rubidium@openttd.org> | 2007-05-17 12:06:47 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-17 12:06:47 +0000 |
commit | c624eb04e74c4f78a988c74ec2e8c62bb3f35be2 (patch) | |
tree | 84815f2e0d08dbbe02bda5efc938c10597b06998 /src/unix.cpp | |
parent | 533ddeb9e6352774b441e4afcc3f60125bba74db (diff) | |
download | openttd-c624eb04e74c4f78a988c74ec2e8c62bb3f35be2.tar.xz |
(svn r9861) -Fix: null pointer derefence under MorphOS and AmigaOS.
Diffstat (limited to 'src/unix.cpp')
-rw-r--r-- | src/unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix.cpp b/src/unix.cpp index 72ac0db12..43429778d 100644 --- a/src/unix.cpp +++ b/src/unix.cpp @@ -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 } |