From: Kyle Russell Date: Fri, 21 Dec 2012 15:34:34 +0000 (-0500) Subject: Fix compile warning on uninitialized return value X-Git-Tag: lxc-0.9.0.alpha3~1^2~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5270bf4b088328d6188211eb02909de4a1a04b68;p=thirdparty%2Flxc.git Fix compile warning on uninitialized return value Signed-off-by: Kyle Russell Acked-by: Stéphane Graber --- diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c index b6c948b91..f6243b8d5 100644 --- a/src/lxc/cgroup.c +++ b/src/lxc/cgroup.c @@ -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 */