From 351aefc8a0d3b188fe5001d16c1189d9f697a74d Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Wed, 15 Feb 2012 09:14:54 +0000 Subject: [PATCH] Do not forget to initialise the error value in daemon_reply. --- daemons/common/daemon-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemons/common/daemon-client.c b/daemons/common/daemon-client.c index 652ffdb5e..4d40ddd5c 100644 --- a/daemons/common/daemon-client.c +++ b/daemons/common/daemon-client.c @@ -34,7 +34,7 @@ error: 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) {