mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Cleanup for lvmetad passing uninit structure
Shown by clang analyzer.
This commit is contained in:
parent
8009588314
commit
ade2b9345f
@ -60,7 +60,7 @@ void daemon_reply_destroy(daemon_reply r) {
|
||||
daemon_reply daemon_send_simple(daemon_handle h, char *id, ...)
|
||||
{
|
||||
static const daemon_reply err = { .error = ENOMEM, .buffer = NULL, .cft = NULL };
|
||||
daemon_request rq;
|
||||
daemon_request rq = { .cft = NULL };
|
||||
daemon_reply repl;
|
||||
va_list ap;
|
||||
|
||||
|
@ -453,7 +453,7 @@ static void usage(char *prog, FILE *file)
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
signed char opt;
|
||||
daemon_state s;
|
||||
daemon_state s = { .private = NULL };
|
||||
lvmetad_state ls;
|
||||
int _restart = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user