Unverified Commit 16d2f898 by Donghwa Jeong Committed by Christian Brauner

coverity: #1425777

parent 6a9668f6
...@@ -2582,9 +2582,6 @@ static bool has_snapshots(struct lxc_container *c) ...@@ -2582,9 +2582,6 @@ static bool has_snapshots(struct lxc_container *c)
if (!dir) if (!dir)
return false; return false;
while ((direntp = readdir(dir))) { while ((direntp = readdir(dir))) {
if (!direntp)
break;
if (!strcmp(direntp->d_name, ".")) if (!strcmp(direntp->d_name, "."))
continue; 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