From 07fdfa637eb4c1e6452ba386478cd41bb642becb Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sat, 9 Sep 2017 18:45:47 +0200 Subject: [PATCH] criu: use correct check initialization check Signed-off-by: Christian Brauner --- src/lxc/criu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/criu.c b/src/lxc/criu.c index 0e0b25dde..005e46c31 100644 --- a/src/lxc/criu.c +++ b/src/lxc/criu.c @@ -550,7 +550,7 @@ static void exec_criu(struct criu_opts *opts) external_not_veth = false; } - if (n->name) { + if (n->name[0] != '\0') { if (strlen(n->name) >= sizeof(eth)) goto err; strncpy(eth, n->name, sizeof(eth)); -- 2.47.2