From: Jeremy Kerr Date: Mon, 28 Oct 2013 07:34:42 +0000 (+0800) Subject: lib/pb-config/powerpc-nvram: Use talloc_zero for interface configs X-Git-Tag: v1.0.0~373 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=3df3cc38458bc2f6122d07a6ba348dbaf1c7267e lib/pb-config/powerpc-nvram: Use talloc_zero for interface configs We're seeing a problem where ifconf->ignore isn't initialised; use talloc_zero instead. Signed-off-by: Jeremy Kerr --- diff --git a/lib/pb-config/storage-powerpc-nvram.c b/lib/pb-config/storage-powerpc-nvram.c index fa2437c..d80e188 100644 --- a/lib/pb-config/storage-powerpc-nvram.c +++ b/lib/pb-config/storage-powerpc-nvram.c @@ -193,7 +193,7 @@ static int parse_one_interface_config(struct config *config, struct interface_config *ifconf; char *tok, *saveptr; - ifconf = talloc(config, struct interface_config); + ifconf = talloc_zero(config, struct interface_config); if (!confstr || !strlen(confstr)) goto out_err;