Re: [iptables-nftables PATCH 2/3] nft: Generalize nft_rule_list() against current family

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Pablo,

+const char *nft_parse_target(struct nft_rule *r, const void **targinfo,
>+			     size_t *target_len)
>+{
>+	struct nft_rule_expr_iter *iter;
>+	struct nft_rule_expr *expr;
>+	const char *targname;
Need targname = NULL, otherwise:

nft-shared.c: In function ‘nft_parse_target’:
nft-shared.c:289:14: warning: ‘targname’ may be used uninitialized in
this function [-Wmaybe-uninitialized

Missed this warning, thanks for finding it.

Tomasz
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux