Commit d5202ddf by 2xsec

tools: lxc-snapshot: fix coding style of strncmp

Signed-off-by: 's avatar2xsec <dh48.jeong@samsung.com>
parent 80287d7d
......@@ -221,7 +221,7 @@ static int do_snapshot_destroy(struct lxc_container *c, char *snapname)
{
bool ret;
if (!strncmp(snapname, "ALL", strlen(snapname)))
if (strncmp(snapname, "ALL", strlen(snapname)) == 0)
ret = c->snapshot_destroy_all(c);
else
ret = c->snapshot_destroy(c, snapname);
......
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