1
0
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:
Zdenek Kabelac 2011-10-30 21:58:59 +00:00
parent 8009588314
commit ade2b9345f
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ void daemon_reply_destroy(daemon_reply r) {
daemon_reply daemon_send_simple(daemon_handle h, char *id, ...) daemon_reply daemon_send_simple(daemon_handle h, char *id, ...)
{ {
static const daemon_reply err = { .error = ENOMEM, .buffer = NULL, .cft = NULL }; static const daemon_reply err = { .error = ENOMEM, .buffer = NULL, .cft = NULL };
daemon_request rq; daemon_request rq = { .cft = NULL };
daemon_reply repl; daemon_reply repl;
va_list ap; va_list ap;

View File

@ -453,7 +453,7 @@ static void usage(char *prog, FILE *file)
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
signed char opt; signed char opt;
daemon_state s; daemon_state s = { .private = NULL };
lvmetad_state ls; lvmetad_state ls;
int _restart = 0; int _restart = 0;