noice

small file browser
git clone git://git.2f30.org/noice
Log | Files | Refs | README | LICENSE

commit 11bebdf23e4c2dd6015f949b65f802f36cedc06c
parent f05f98e4feb9a6100301800870c74365c5430ac9
Author: lostd <lostd@2f30.org>
Date:   Fri, 10 Oct 2014 13:24:19 +0300

The dirp should be initialized here

Diffstat:
Mnoice.c | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/noice.c b/noice.c @@ -555,11 +555,10 @@ out: free(dents[i].name); free(dents); - if (dirp != NULL) { - r = closedir(dirp); - if (r == -1) - printerr(1, "closedir"); - } + /* Should never be null */ + r = closedir(dirp); + if (r == -1) + printerr(1, "closedir"); goto begin; }