]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
criu: use correct check initialization check
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 9 Sep 2017 16:45:47 +0000 (18:45 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Sun, 24 Sep 2017 04:37:04 +0000 (00:37 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/criu.c

index 0e0b25dde4dd4464c7e84b5be5b3ef40c82b91ea..005e46c3188c9afa7e9d58bfa1148dadc0e6a4c4 100644 (file)
@@ -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));