From 3df3cc38458bc2f6122d07a6ba348dbaf1c7267e Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Mon, 28 Oct 2013 15:34:42 +0800 Subject: [PATCH] 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 --- lib/pb-config/storage-powerpc-nvram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2