Fixed NULL-pointer in SysReadDirEnts.
This commit is contained in:
parent
8d18993584
commit
8ef439b328
|
@ -70,7 +70,7 @@ namespace Sortix
|
||||||
|
|
||||||
// Insert the current dirent into the single-linked list for
|
// Insert the current dirent into the single-linked list for
|
||||||
// easy iteration by userspace.
|
// easy iteration by userspace.
|
||||||
prev->d_next = dirent;
|
if ( prev ) { prev->d_next = dirent; }
|
||||||
dirent->d_next = NULL;
|
dirent->d_next = NULL;
|
||||||
|
|
||||||
// Check for end-of-directory conditions. Signal to userspace
|
// Check for end-of-directory conditions. Signal to userspace
|
||||||
|
|
Loading…
Reference in New Issue