From: Christian Brauner Date: Sat, 17 Feb 2018 18:16:20 +0000 (+0100) Subject: cgfsng: must_append_string() X-Git-Tag: lxc-2.0.10~295 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81b1669969a555f94c88b6ed7127090343f825af;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 75530894a..6045523cd 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -1066,9 +1066,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; }