[dovecot-cvs] dovecot/src/lib mountpoint.c,1.1,1.2

cras at dovecot.org cras at dovecot.org
Fri Apr 14 13:27:57 EEST 2006


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv27797/lib

Modified Files:
	mountpoint.c 
Log Message:
memset() the returned structure, just in case.



Index: mountpoint.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/mountpoint.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- mountpoint.c	14 Apr 2006 10:26:55 -0000	1.1
+++ mountpoint.c	14 Apr 2006 10:27:55 -0000	1.2
@@ -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);



More information about the dovecot-cvs mailing list