]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix compile warning on uninitialized return value
authorKyle Russell <bkylerussell@gmail.com>
Fri, 21 Dec 2012 15:34:34 +0000 (10:34 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 25 Dec 2012 11:59:24 +0000 (12:59 +0100)
Signed-off-by: Kyle Russell <bkylerussell@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/cgroup.c

index b6c948b91aee7f53102d23186174314348f1fd41..f6243b8d53f464897781dd0b8934508b24c7eeb4 100644 (file)
@@ -59,7 +59,7 @@ enum {
 static char *mount_has_subsystem(const struct mntent *mntent)
 {
        FILE *f;
-       char *c, *ret;
+       char *c, *ret = NULL;
        char line[MAXPATHLEN];
 
        /* read the list of subsystems from the kernel */