[xen staging] xl/vsnd: initialise rc in dryrun path

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen staging] xl/vsnd: initialise rc in dryrun path

patchbot
commit d8fd67feacc18d5ac071a434469a22f7af487cba
Author:     Wei Liu <[hidden email]>
AuthorDate: Tue Jul 10 14:43:34 2018 +0100
Commit:     Wei Liu <[hidden email]>
CommitDate: Tue Jul 10 15:17:43 2018 +0100

    xl/vsnd: initialise rc in dryrun path
   
    Reported-by: Coverity
    Signed-off-by: Wei Liu <[hidden email]>
    Acked-by: Ian Jackson <[hidden email]>
---
 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;
     }
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog