From: tomponline Date: Sat, 2 Mar 2019 10:14:32 +0000 (+0000) Subject: attacg: shut up gcc X-Git-Tag: lxc-3.2.0~125^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c737378f9a274497834b4b6871f6dadef90f95e;p=thirdparty%2Flxc.git attacg: shut up gcc Invalid warning but let's please the compiler. Closes lxc#2885. Signed-off-by: tomponline --- diff --git a/src/lxc/attach.c b/src/lxc/attach.c index f4e43e2b6..d3ab98422 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -669,7 +669,7 @@ static bool no_new_privs(struct lxc_container *c, lxc_attach_options_t *options) static signed long get_personality(const char *name, const char *lxcpath) { - __do_free char *p; + __do_free char *p = NULL; p = lxc_cmd_get_config_item(name, "lxc.arch", lxcpath); if (!p)