cgfsng: must_append_string()

parent c3ef912e
...@@ -1075,9 +1075,10 @@ static char *cg_hybrid_get_current_cgroup(char *basecginfo, char *controller, ...@@ -1075,9 +1075,10 @@ static char *cg_hybrid_get_current_cgroup(char *basecginfo, char *controller,
static void must_append_string(char ***list, char *entry) static void must_append_string(char ***list, char *entry)
{ {
int newentry = append_null_to_list((void ***)list); int newentry;
char *copy; char *copy;
newentry = append_null_to_list((void ***)list);
copy = must_copy_string(entry); copy = must_copy_string(entry);
(*list)[newentry] = copy; (*list)[newentry] = copy;
} }
......
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