Mercurial > dovecot > original-hg > dovecot-1.2
changeset 4189:1fb345878e1b HEAD
memset() the returned structure, just in case.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 14 Apr 2006 13:27:55 +0300 |
parents | a3dc87033d2f |
children | 19fc27f57b0c |
files | src/lib/mountpoint.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/mountpoint.c Fri Apr 14 13:27:20 2006 +0300 +++ b/src/lib/mountpoint.c Fri Apr 14 13:27:55 2006 +0300 @@ -112,6 +112,7 @@ if (device_path == NULL) return 0; + memset(point_r, 0, sizeof(*point_r)); point_r->device_path = p_strdup(pool, device_path); point_r->mount_path = p_strdup(pool, mount_path); point_r->type = p_strdup(pool, type);