libbluray | branch: master | hpi1 <[email protected]> | Fri Aug 22 12:13:01 2014 +0300| [3ef62e0d803e0ec2350f3d55e95b8c6fccf8f2e4] | committer: hpi1
Remove useless if() "The only fields in the dirent structure that are mandated by POSIX.1 are: d_name[], "... > http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=3ef62e0d803e0ec2350f3d55e95b8c6fccf8f2e4 --- src/examples/mpls_dump.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/examples/mpls_dump.c b/src/examples/mpls_dump.c index ef2f33a..a97ee33 100644 --- a/src/examples/mpls_dump.c +++ b/src/examples/mpls_dump.c @@ -737,9 +737,7 @@ main(int argc, char *argv[]) struct dirent *ent; int jj = 0; for (ent = readdir(dir); ent != NULL; ent = readdir(dir)) { - if (ent->d_name != NULL) { dirlist[jj++] = str_dup(ent->d_name); - } } qsort(dirlist, jj, sizeof(char*), _qsort_str_cmp); for (jj = 0; dirlist[jj] != NULL; jj++) { _______________________________________________ libbluray-devel mailing list [email protected] https://mailman.videolan.org/listinfo/libbluray-devel
