Fix ls exit code.

This commit is contained in:
Jonas 'Sortie' Termansen 2013-04-23 20:03:57 +02:00
parent d12c420ca1
commit 1ca946af2f
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
/*******************************************************************************
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012.
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013.
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
@ -184,6 +184,8 @@ int ls(const char* path)
goto cleanup_dir;
}
ret = 0;
cleanup_dir:
closedir(dir);
cleanup_entries: