mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fixed bug in previous commit. Ooops.
This commit is contained in:
parent
c1849ed7d8
commit
e3bb0dfc9d
1 changed files with 1 additions and 1 deletions
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue