]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
don't use cgroup_path_components un-initialized
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 10 Sep 2013 19:33:00 +0000 (14:33 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 10 Sep 2013 22:19:21 +0000 (18:19 -0400)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/cgroup.c

index 288aa2e2e90631a5b4b344b80d692f9ef8795e90..86d89e9cbaa556e10a2185ae7ee38c07640839fd 100644 (file)
@@ -538,7 +538,7 @@ struct cgroup_process_info *lxc_cgroup_process_info_get_self(struct cgroup_meta_
 /* create a new cgroup */
 extern struct cgroup_process_info *lxc_cgroup_create(const char *name, const char *path_pattern, struct cgroup_meta_data *meta_data, const char *sub_pattern)
 {
-       char **cgroup_path_components;
+       char **cgroup_path_components = NULL;
        char **p = NULL;
        char *path_so_far = NULL;
        char **new_cgroup_paths = NULL;