1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Do not forget to initialise the error value in daemon_reply.

This commit is contained in:
Petr Rockai 2012-02-15 09:14:54 +00:00
parent e22fddbff6
commit 351aefc8a0

View File

@ -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) {