diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2011-08-11 18:23:13 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2011-08-11 18:23:13 +0000 |
commit | faaa1a642cd7ae131df1098487f01ac74de2b66e (patch) | |
tree | ea3926b08c2327aad30ad0f331def9cfc83b4a48 /communication.c | |
parent | 4653cdbf65682c3b32402d930b815484884f113b (diff) | |
download | ebtables-faaa1a642cd7ae131df1098487f01ac74de2b66e.tar.gz |
initialize some variables to get rid of warnings when compiling with optimization
Diffstat (limited to 'communication.c')
-rw-r--r-- | communication.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/communication.c b/communication.c index 3311358..0917f6e 100644 --- a/communication.c +++ b/communication.c @@ -293,7 +293,7 @@ void ebt_deliver_counters(struct ebt_u_replace *u_repl) socklen_t optlen; struct ebt_replace repl; struct ebt_cntchanges *cc = u_repl->cc->next, *cc2; - struct ebt_u_entries *entries; + struct ebt_u_entries *entries = NULL; struct ebt_u_entry *next = NULL; int i, chainnr = 0; @@ -708,8 +708,8 @@ int ebt_get_table(struct ebt_u_replace *u_repl, int init) { int i, j, k, hook; struct ebt_replace repl; - struct ebt_u_entry *u_e; - struct ebt_cntchanges *new_cc, *cc; + struct ebt_u_entry *u_e = NULL; + struct ebt_cntchanges *new_cc = NULL, *cc; strcpy(repl.name, u_repl->name); if (u_repl->filename != NULL) { |