(sieve_interp_alloc): Fill allocalted memory with zeroes.
Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -54,6 +54,7 @@ int sieve_interp_alloc(sieve_interp_t **interp, void *interp_context) | ... | @@ -54,6 +54,7 @@ int sieve_interp_alloc(sieve_interp_t **interp, void *interp_context) |
54 | if (i == NULL) { | 54 | if (i == NULL) { |
55 | return SIEVE_NOMEM; | 55 | return SIEVE_NOMEM; |
56 | } | 56 | } |
57 | memset (i, 0, sizeof (sieve_interp_t)); | ||
57 | 58 | ||
58 | i->redirect = i->discard = i->reject = i->fileinto = i->keep = NULL; | 59 | i->redirect = i->discard = i->reject = i->fileinto = i->keep = NULL; |
59 | i->getsize = NULL; | 60 | i->getsize = NULL; | ... | ... |
-
Please register or sign in to post a comment