(svn r9861) -Fix: null pointer derefence under MorphOS and AmigaOS.

This commit is contained in:
rubidium 2007-05-17 12:06:47 +00:00
parent 042bcc0325
commit aea6ef94bc

View File

@ -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
}