]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: #1425794
authorDonghwa Jeong <dh48.jeong@samsung.com>
Fri, 8 Jun 2018 02:14:40 +0000 (11:14 +0900)
committerDonghwa Jeong <dh48.jeong@samsung.com>
Fri, 8 Jun 2018 02:14:40 +0000 (11:14 +0900)
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
src/lxc/confile.c

index 558e32e8c9b147427b61f46e3199bfc1c330f585..d07ada29cd0bd4fe9f331f3e11edb71b814fbb2b 100644 (file)
@@ -2076,8 +2076,6 @@ static int do_includedir(const char *dirp, struct lxc_conf *lxc_conf)
 
        while ((direntp = readdir(dir))) {
                const char *fnam;
-               if (!direntp)
-                       break;
 
                fnam = direntp->d_name;
                if (!strcmp(fnam, "."))