diff options
-rw-r--r-- | src/chain.c | 2 | ||||
-rw-r--r-- | src/rule.c | 2 | ||||
-rw-r--r-- | src/set.c | 2 | ||||
-rw-r--r-- | src/table.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/chain.c b/src/chain.c index ff59f7f..dfe0cf2 100644 --- a/src/chain.c +++ b/src/chain.c @@ -816,7 +816,7 @@ static int nftnl_chain_do_parse(struct nftnl_chain *c, enum nftnl_parse_type typ enum nftnl_parse_input input) { int ret; - struct nftnl_parse_err perr; + struct nftnl_parse_err perr = {}; switch (type) { case NFTNL_PARSE_XML: @@ -700,7 +700,7 @@ static int nftnl_rule_do_parse(struct nftnl_rule *r, enum nftnl_parse_type type, enum nftnl_parse_input input) { int ret; - struct nftnl_parse_err perr; + struct nftnl_parse_err perr = {}; switch (type) { case NFTNL_PARSE_XML: @@ -781,7 +781,7 @@ static int nftnl_set_do_parse(struct nftnl_set *s, enum nftnl_parse_type type, enum nftnl_parse_input input) { int ret; - struct nftnl_parse_err perr; + struct nftnl_parse_err perr = {}; switch (type) { case NFTNL_PARSE_XML: diff --git a/src/table.c b/src/table.c index bb46716..845fd68 100644 --- a/src/table.c +++ b/src/table.c @@ -360,7 +360,7 @@ static int nftnl_table_do_parse(struct nftnl_table *t, enum nftnl_parse_type typ enum nftnl_parse_input input) { int ret; - struct nftnl_parse_err perr; + struct nftnl_parse_err perr = {}; switch (type) { case NFTNL_PARSE_XML: |