Commit 1cc0e3cf 1cc0e3cf63fbef92cca5c8e62f43ac1f316d9f01 by Sergey Poznyakoff

(sieve_interp_alloc): Fill allocalted memory with zeroes.

1 parent 9ad5b855
...@@ -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;
......