From: Christian Brauner Date: Sat, 17 Feb 2018 18:16:20 +0000 (+0100) Subject: cgfsng: must_append_string() X-Git-Tag: lxc-3.0.0.beta1~22^2~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dfb18bf040fd931b0c87c17968a8209253ac2e5;p=thirdparty%2Flxc.git cgfsng: must_append_string() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 6bec51928..15e913328 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -1075,9 +1075,10 @@ static char *cg_hybrid_get_current_cgroup(char *basecginfo, char *controller, static void must_append_string(char ***list, char *entry) { - int newentry = append_null_to_list((void ***)list); + int newentry; char *copy; + newentry = append_null_to_list((void ***)list); copy = must_copy_string(entry); (*list)[newentry] = copy; }