From: zkabelac@sourceware.org <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2/daemons common/daemon-client.c lvmetad/lv ...
Date: 30 Oct 2011 21:59:00 -0000 [thread overview]
Message-ID: <20111030215900.3473.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at 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;
reply other threads:[~2011-10-30 21:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111030215900.3473.qmail@sourceware.org \
--to=zkabelac@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.