From: Wei Liu <wei.liu2@citrix.com>
To: Xen-devel <xen-devel@lists.xenproject.org>
Cc: Wei Liu <wei.liu2@citrix.com>,
al1img@gmail.com, Ian Jackson <Ian.Jackson@eu.citrix.com>
Subject: [PATCH 3/3] xl/vsnd: initialise rc in dryrun path
Date: Tue, 10 Jul 2018 14:46:07 +0100 [thread overview]
Message-ID: <20180710134607.20302-4-wei.liu2@citrix.com> (raw)
In-Reply-To: <20180710134607.20302-1-wei.liu2@citrix.com>
Reported-by: Coverity
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
tools/xl/xl_vsnd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/xl/xl_vsnd.c b/tools/xl/xl_vsnd.c
index 6dd3a901b2..3306b93139 100644
--- a/tools/xl/xl_vsnd.c
+++ b/tools/xl/xl_vsnd.c
@@ -46,6 +46,7 @@ int main_vsndattach(int argc, char **argv)
if (dryrun_only) {
char *json = libxl_device_vsnd_to_json(ctx, &vsnd);
printf("vsnd: %s\n", json);
+ rc = 0;
free(json);
goto out;
}
--
2.11.0
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2018-07-10 13:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-10 13:46 [PATCH 0/3] xl/libxl: fixes for vsnd Wei Liu
2018-07-10 13:46 ` [PATCH 1/3] libxl/vsnd: add missing error checks Wei Liu
2018-07-10 13:46 ` [PATCH 2/3] xl/vsnd: use xcalloc to allocate memory for parser Wei Liu
2018-07-10 13:46 ` Wei Liu [this message]
2018-07-10 13:52 ` [PATCH 0/3] xl/libxl: fixes for vsnd Ian Jackson
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=20180710134607.20302-4-wei.liu2@citrix.com \
--to=wei.liu2@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=al1img@gmail.com \
--cc=xen-devel@lists.xenproject.org \
/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 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 NNTP newsgroup(s).