[libbluray-devel] Remove useless else
npzacs
git at videolan.org
Sat Sep 16 12:41:39 CEST 2017
libbluray | branch: master | npzacs <npzacs at gmail.com> | Sat Sep 16 12:54:03 2017 +0300| [ef5455c6a7af01b87b668fa67f92a73299b83738] | committer: npzacs
Remove useless else
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=ef5455c6a7af01b87b668fa67f92a73299b83738
---
src/file/dir_posix.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/file/dir_posix.c b/src/file/dir_posix.c
index 1592ec3e..772a68b5 100644
--- a/src/file/dir_posix.c
+++ b/src/file/dir_posix.c
@@ -51,7 +51,8 @@ static int _dir_read_posix(BD_DIR_H *dir, BD_DIRENT *entry)
result = readdir_r((DIR*)dir->internal, &e, &p_e);
if (result) {
return -result;
- } else if (p_e == NULL) {
+ }
+ if (p_e == NULL) {
return 1;
}
strncpy(entry->d_name, e.d_name, sizeof(entry->d_name));
More information about the libbluray-devel
mailing list