From: Alvaro Neira <alvaroneay@gmail.com>
To: netfilter-devel@vger.kernel.org
Cc: eric@regit.org
Subject: [libnftables PATCH 1/4] tests: remove unnecessary variable initialization
Date: Tue, 27 Aug 2013 20:10:37 +0200 [thread overview]
Message-ID: <20130827181037.9399.30579.stgit@Ph0enix> (raw)
From: Álvaro Neira Ayuso <alvaroneay@gmail.com>
Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com>
---
tests/nft-parsing-test.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/tests/nft-parsing-test.c b/tests/nft-parsing-test.c
index bf5b519..648ed36 100644
--- a/tests/nft-parsing-test.c
+++ b/tests/nft-parsing-test.c
@@ -155,12 +155,12 @@ static int test_json(const char *filename)
{
#ifdef JSON_PARSING
int ret = -1;
- struct nft_table *t = NULL;
- struct nft_chain *c = NULL;
- struct nft_rule *r = NULL;
+ struct nft_table *t;
+ struct nft_chain *c;
+ struct nft_rule *r;
json_t *root;
json_error_t error;
- char *json = NULL;
+ char *json;
root = json_load_file(filename, 0, &error);
if (!root) {
@@ -222,13 +222,13 @@ static int test_xml(const char *filename)
{
#ifdef XML_PARSING
int ret = -1;
- struct nft_table *t = NULL;
- struct nft_chain *c = NULL;
- struct nft_rule *r = NULL;
- struct nft_set *s = NULL;
+ struct nft_table *t;
+ struct nft_chain *c;
+ struct nft_rule *r;
+ struct nft_set *s;
FILE *fp;
- mxml_node_t *tree = NULL;;
- char *xml = NULL;
+ mxml_node_t *tree;
+ char *xml;
fp = fopen(filename, "r");
tree = mxmlLoadFile(NULL, fp, MXML_NO_CALLBACK);
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2013-08-27 18:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-27 18:10 Alvaro Neira [this message]
2013-08-27 18:10 ` [libnftables PATCH 2/4] set: Add json parser support Alvaro Neira
2013-08-27 22:52 ` Pablo Neira Ayuso
2013-08-27 18:10 ` [libnftables PATCH 3/4] tests: set: add json parsing support Alvaro Neira
2013-08-27 22:52 ` Pablo Neira Ayuso
2013-08-27 18:11 ` [libnftables PATCH 4/4] examples: Add nft-set-json-add Alvaro Neira
2013-08-27 22:52 ` Pablo Neira Ayuso
2013-08-27 22:51 ` [libnftables PATCH 1/4] tests: remove unnecessary variable initialization Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130827181037.9399.30579.stgit@Ph0enix \
--to=alvaroneay@gmail.com \
--cc=eric@regit.org \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).