Fixed bug in previous commit. Ooops.

This commit is contained in:
Jonas 'Sortie' Termansen 2011-11-20 22:48:22 +01:00
parent c1849ed7d8
commit e3bb0dfc9d
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ namespace Sortix
if ( *path++ != '/' ) { Error::Set(Error::ENOENT); return NULL; }
// Hack to prevent / from being a filename.
if ( path++ == 0 ) { Error::Set(Error::ENOENT); return NULL; }
if ( path == 0 ) { Error::Set(Error::ENOENT); return NULL; }
if ( files )
{