Commit 001b026e by Serge Hallyn Committed by Stéphane Graber

don't use cgroup_path_components un-initialized

parent 33ad9f1a
...@@ -538,7 +538,7 @@ struct cgroup_process_info *lxc_cgroup_process_info_get_self(struct cgroup_meta_ ...@@ -538,7 +538,7 @@ struct cgroup_process_info *lxc_cgroup_process_info_get_self(struct cgroup_meta_
/* create a new cgroup */ /* 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) 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 **p = NULL;
char *path_so_far = NULL; char *path_so_far = NULL;
char **new_cgroup_paths = NULL; char **new_cgroup_paths = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment