diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2011-12-02 00:21:02 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2011-12-02 00:21:02 +0100 |
commit | ed36bfb0e2971621f76012974fca23538684f222 (patch) | |
tree | 9272ed1341511d049ccd0232c890c0821a2d50e9 /examples/nfacct-add.c | |
parent | 16762a68af7fe7fb6c8a606c25a8550dbf65ab5d (diff) |
examples: nfacct-add: initialize counters, otherwise we add garbage
Diffstat (limited to 'examples/nfacct-add.c')
-rw-r--r-- | examples/nfacct-add.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/nfacct-add.c b/examples/nfacct-add.c index 8132ade..64f94d1 100644 --- a/examples/nfacct-add.c +++ b/examples/nfacct-add.c @@ -10,7 +10,7 @@ int main(int argc, char *argv[]) char buf[MNL_SOCKET_BUFFER_SIZE]; struct nlmsghdr *nlh; uint32_t portid, seq; - struct nfacct nfacct; + struct nfacct nfacct = {}; int ret; if (argc != 2) { |