public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/daemons common/daemon-client.c lvmetad/lv ...
@ 2011-10-30 21:59 zkabelac
  0 siblings, 0 replies; only message in thread
From: zkabelac @ 2011-10-30 21:59 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac@sourceware.org	2011-10-30 21:58:59

Modified files:
	daemons/common : daemon-client.c 
	daemons/lvmetad: lvmetad-core.c 

Log message:
	Cleanup for lvmetad passing uninit structure
	
	Shown by clang analyzer.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/common/daemon-client.c.diff?cvsroot=lvm2&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/lvmetad/lvmetad-core.c.diff?cvsroot=lvm2&r1=1.26&r2=1.27

--- LVM2/daemons/common/daemon-client.c	2011/09/17 14:49:18	1.8
+++ LVM2/daemons/common/daemon-client.c	2011/10/30 21:58:59	1.9
@@ -60,7 +60,7 @@
 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;
 
--- LVM2/daemons/lvmetad/lvmetad-core.c	2011/09/17 13:33:51	1.26
+++ LVM2/daemons/lvmetad/lvmetad-core.c	2011/10/30 21:58:59	1.27
@@ -453,7 +453,7 @@
 int main(int argc, char *argv[])
 {
 	signed char opt;
-	daemon_state s;
+	daemon_state s = { .private = NULL };
 	lvmetad_state ls;
 	int _restart = 0;
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-30 21:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-30 21:59 LVM2/daemons common/daemon-client.c lvmetad/lv zkabelac

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).