From 7c737378f9a274497834b4b6871f6dadef90f95e Mon Sep 17 00:00:00 2001 From: tomponline Date: Sat, 2 Mar 2019 10:14:32 +0000 Subject: [PATCH] attacg: shut up gcc Invalid warning but let's please the compiler. Closes lxc#2885. Signed-off-by: tomponline --- src/lxc/attach.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.2