]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tools: lxc-snapshot: fix coding style of strncmp
author2xsec <dh48.jeong@samsung.com>
Sun, 1 Jul 2018 13:50:04 +0000 (22:50 +0900)
committer2xsec <dh48.jeong@samsung.com>
Sun, 1 Jul 2018 13:50:04 +0000 (22:50 +0900)
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
src/lxc/tools/lxc_snapshot.c

index 55062a344e86597a2960ce85a13add5386e25977..f943bdd1c4d163df8519c4645160fd9cc81be9cf 100644 (file)
@@ -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);