From: 2xsec Date: Sun, 1 Jul 2018 13:50:04 +0000 (+0900) Subject: tools: lxc-snapshot: fix coding style of strncmp X-Git-Tag: lxc-3.1.0~225^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5202ddf0b92fc1f9a9a2da572dab3f0c7f89ce9;p=thirdparty%2Flxc.git tools: lxc-snapshot: fix coding style of strncmp Signed-off-by: 2xsec --- diff --git a/src/lxc/tools/lxc_snapshot.c b/src/lxc/tools/lxc_snapshot.c index 55062a344..f943bdd1c 100644 --- a/src/lxc/tools/lxc_snapshot.c +++ b/src/lxc/tools/lxc_snapshot.c @@ -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);