diff --git a/pmc_common.c b/pmc_common.c index 22aaeea..9d21210 100644 --- a/pmc_common.c +++ b/pmc_common.c @@ -66,8 +66,10 @@ struct pmc *pmc_create(struct config *cfg, enum transport_type transport_type, UInteger8 domain_number, UInteger8 transport_specific, int zero_datalen) { - struct pmc *pmc; struct interface iface; + struct pmc *pmc; + + memset(&iface, 0, sizeof(iface)); pmc = calloc(1, sizeof *pmc); if (!pmc)