X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fiptables.c;h=1e35851ab7ff49f14e8208a7ee4d6fe5f11e87d0;hb=66697ecf25472974bb0414e68ca682e93e1b8c8d;hp=05e3e24b92b9716612b13748d8027521c289bd54;hpb=9c8f3110063cf83fa146929d5f28f8ecf17a4ffd;p=collectd.git diff --git a/src/iptables.c b/src/iptables.c index 05e3e24b..1e35851a 100644 --- a/src/iptables.c +++ b/src/iptables.c @@ -215,7 +215,7 @@ static int iptables_config (const char *key, const char *value) } chain_list = list; - final = (ip_chain_t *) malloc( sizeof(temp) ); + final = malloc(sizeof (*final)); if (final == NULL) { char errbuf[1024];