mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-21 09:18:25 +00:00
coverity: #1425779
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
This commit is contained in:
parent
1b611563ca
commit
951665a30e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user