mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
The dirp should be initialized here
This commit is contained in:
parent
f05f98e4fe
commit
11bebdf23e
3
noice.c
3
noice.c
|
@ -555,11 +555,10 @@ out:
|
||||||
free(dents[i].name);
|
free(dents[i].name);
|
||||||
free(dents);
|
free(dents);
|
||||||
|
|
||||||
if (dirp != NULL) {
|
/* Should never be null */
|
||||||
r = closedir(dirp);
|
r = closedir(dirp);
|
||||||
if (r == -1)
|
if (r == -1)
|
||||||
printerr(1, "closedir");
|
printerr(1, "closedir");
|
||||||
}
|
|
||||||
|
|
||||||
goto begin;
|
goto begin;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue