mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fixed NULL-pointer in SysReadDirEnts.
This commit is contained in:
parent
8d18993584
commit
8ef439b328
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ namespace Sortix
|
|||
|
||||
// Insert the current dirent into the single-linked list for
|
||||
// easy iteration by userspace.
|
||||
prev->d_next = dirent;
|
||||
if ( prev ) { prev->d_next = dirent; }
|
||||
dirent->d_next = NULL;
|
||||
|
||||
// Check for end-of-directory conditions. Signal to userspace
|
||||
|
|
Loading…
Add table
Reference in a new issue