diff --git a/src/iptables.c b/src/iptables.c
index 1e35851ab7ff49f14e8208a7ee4d6fe5f11e87d0..20dce658b95e4edd1767a4b36e341e1308ea7759 100644 (file)
--- a/src/iptables.c
+++ b/src/iptables.c
else
return (1);
- ip_chain_t temp, *final, **list;
+ ip_chain_t temp = { 0 };
+ ip_chain_t *final, **list;
char *table;
int table_len;
char *chain;
char *fields[4];
int fields_num;
- memset (&temp, 0, sizeof (temp));
-
value_copy = strdup (value);
if (value_copy == NULL)
{
table = NULL;
chain = NULL;
- list = (ip_chain_t **) realloc (chain_list, (chain_num + 1) * sizeof (ip_chain_t *));
+ list = realloc (chain_list, (chain_num + 1) * sizeof (ip_chain_t *));
if (list == NULL)
{
char errbuf[1024];