Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
This commit is contained in:
Donghwa Jeong 2018-06-08 11:12:52 +09:00
parent 1b611563ca
commit 951665a30e
No known key found for this signature in database
GPG Key ID: 0BE2750EE612F372

View File

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