Unverified Commit 8cf133e2 by Donghwa Jeong Committed by Christian Brauner

coverity: #1425779

parent 16d2f898
......@@ -4580,10 +4580,7 @@ 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
/* Ignore '.', '..' and any hidden directory. */
if (!strncmp(direntp->d_name, ".", 1))
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment