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

index 1ce408009d9409afa46c642cf673d5d5c5e8197f..4a3495a30580516434fc5405c81035600ebee1b9 100644 (file)
@@ -4904,9 +4904,6 @@ int list_defined_containers(const char *lxcpath, char ***names, struct lxc_conta
                *names = NULL;
 
        while ((direntp = readdir(dir))) {
-               if (!direntp)
-                       break;
-
                /* Ignore '.', '..' and any hidden directory. */
                if (!strncmp(direntp->d_name, ".", 1))
                        continue;