From 87a0dfec43336ed957a414a1cb5e02239e04a9b8 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 23 Nov 2008 15:21:05 +0100 Subject: src: set specific array size for the API This patch adds the size of the arrays to set to NULL unset elements. This helps to spot unset functions for new attributes. Signed-off-by: Pablo Neira Ayuso --- src/conntrack/getter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conntrack/getter.c') diff --git a/src/conntrack/getter.c b/src/conntrack/getter.c index 658d010..65661d4 100644 --- a/src/conntrack/getter.c +++ b/src/conntrack/getter.c @@ -287,7 +287,7 @@ static const void *get_attr_helper_name(const struct nf_conntrack *ct) return ct->helper_name; } -get_attr get_attr_array[] = { +get_attr get_attr_array[ATTR_MAX] = { [ATTR_ORIG_IPV4_SRC] = get_attr_orig_ipv4_src, [ATTR_ORIG_IPV4_DST] = get_attr_orig_ipv4_dst, [ATTR_REPL_IPV4_SRC] = get_attr_repl_ipv4_src, -- cgit v1.2.3