Skip to contentSkip to conversation

cluster/cman/tests libtest.c

Cluster-devel [email protected] 1 participant 1 message Aug 17, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: pcaulfield at sourceware.org 2006-08-17 14:30:12

Modified files:
cman/tests : libtest.c

Log message:
Fix a bug in the demo prog.
no point in setting a bad example (again)

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/tests/libtest.c.diff?cvsroot=cluster&r1=1.5&r2=1.6

cman/tests/libtest.c +3 -0
@@ -95,6 +95,9 @@
 		perror("get_nodes failed");
 	}
 
+	// Need to clear this.
+	// Who wrote this rubbish? oh, I did.
+	nodes[0].cn_name[0] = '\0';
 	if (!cman_get_node(h, CMAN_NODEID_US, &nodes[0]))
 	{
 		printf("Getting our info:\n");