Skip to content

Commit 4b663aa

Browse files
HerbenHerben
authored andcommitted
Fixed a bug in dread.
1 parent c581d9b commit 4b663aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ps2link.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@
478478
dirent = readdir(dir);
479479

480480
// If no more entries were found...
481-
if (dirent != NULL) {
481+
if (dirent == NULL) {
482482

483483
// Tell the user an entry wasn't found.
484484
return ps2link_response_readdir(0, 0, 0, 0, NULL, NULL, NULL, 0, NULL);

0 commit comments

Comments
 (0)