Skip to contentSkip to conversation

LVM2/daemons/common daemon-client.c

PATCH [email protected] 1 participant 1 message Feb 15, 2012

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mornfall at sourceware.org 2012-02-15 09:14:54

Modified files:
daemons/common : daemon-client.c

Log message:
Do not forget to initialise the error value in daemon_reply.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/common/daemon-client.c.diff?cvsroot=lvm2&r1=1.11&r2=1.12

daemons/common/daemon-client.c +1 -1
@@ -34,7 +34,7 @@
 
 daemon_reply daemon_send(daemon_handle h, daemon_request rq)
 {
-	daemon_reply reply = { .cft = NULL };
+	daemon_reply reply = { .cft = NULL, .error = 0 };
 	assert(h.socket_fd >= 0);
 
 	if (!rq.buffer) {