[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/group/daemon main.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	teigland sourceware org	2006-10-24 17:08:06

Modified files:
	group/daemon   : main.c 

Log message:
	recent commit fixing bz 210344 removed the memset so we're
	getting garbage back sometimes

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/daemon/main.c.diff?cvsroot=cluster&r1=1.50&r2=1.51

--- cluster/group/daemon/main.c	2006/10/21 17:15:12	1.50
+++ cluster/group/daemon/main.c	2006/10/24 17:08:06	1.51
@@ -493,7 +493,9 @@
 	int rv, count = 0, max = atoi(argv[1]);
 
 	data = malloc(sizeof(group_data_t));
+	memset(data, 0, sizeof(group_data_t));
 	count = 0;
+
 	list_for_each_entry(g, &gd_groups, list) {
 		copy_group_data(g, data);
 		rv = do_write(client[ci].fd, data, sizeof(group_data_t));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]