1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-10 05:18:36 +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 d6afd3e0fc
commit 017c0c9e8c

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