Reported-by: Coverity
Signed-off-by: Wei Liu <wei.l...@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

Reply via email to