Permalink
Browse files

Fix compile warning on uninitialized return value

Signed-off-by: Kyle Russell <bkylerussell@gmail.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
  • Loading branch information...
1 parent 859a6da commit 5270bf4b088328d6188211eb02909de4a1a04b68 @bkylerussell bkylerussell committed with stgraber Dec 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lxc/cgroup.c
View
@@ -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 */

0 comments on commit 5270bf4

Please sign in to comment.