diff options
author | Petr Rockai <prockai@redhat.com> | 2012-02-15 09:14:54 +0000 |
---|---|---|
committer | Petr Rockai <prockai@redhat.com> | 2012-02-15 09:14:54 +0000 |
commit | 351aefc8a0d3b188fe5001d16c1189d9f697a74d (patch) | |
tree | b777f7c83268877173358dc0063a4ae8c28468fd /daemons | |
parent | e22fddbff6fd979e12f8692b072cc163822adfc3 (diff) | |
download | lvm2-351aefc8a0d3b188fe5001d16c1189d9f697a74d.tar.gz lvm2-351aefc8a0d3b188fe5001d16c1189d9f697a74d.tar.xz lvm2-351aefc8a0d3b188fe5001d16c1189d9f697a74d.zip |
Do not forget to initialise the error value in daemon_reply.
Diffstat (limited to 'daemons')
-rw-r--r-- | daemons/common/daemon-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/common/daemon-client.c b/daemons/common/daemon-client.c index 652ffdb5..4d40ddd5 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) { |