]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc_user_nic: initialize cnic to NULL to please compiler
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 19 Nov 2013 16:17:51 +0000 (16:17 +0000)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 19 Nov 2013 22:27:17 +0000 (16:27 -0600)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxc_user_nic.c

index caa20dfb1da01f7e417f9b3d7bb0248732646424..7d367c1ffc120b7bb1bfc0348c40d86449b0a1a0 100644 (file)
@@ -906,7 +906,7 @@ int main(int argc, char *argv[])
        bool gotone = false;
        char *me;
        char *nicname = alloca(40);
-       char *cnic; // created nic name in container is returned here.
+       char *cnic = NULL; // created nic name in container is returned here.
        char *vethname;
        int pid;