]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix uninitialized value in lxc_try_cmd
authorStéphane Graber <stgraber@ubuntu.com>
Wed, 11 Dec 2013 20:51:14 +0000 (15:51 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 11 Dec 2013 21:01:35 +0000 (16:01 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/commands.c

index ae4ff1ec415a524a1a0c29e728dfb4d890a5ff6a..3788afd2ac3e9f298f2308c690ccd29d4c52c9cc 100644 (file)
@@ -293,7 +293,7 @@ out:
 
 int lxc_try_cmd(const char *name, const char *lxcpath)
 {
-       int stopped, ret;
+       int stopped = 0, ret;
        struct lxc_cmd_rr cmd = {
                .req = { .cmd = LXC_CMD_GET_INIT_PID },
        };