[Pkg-libvirt-commits] [libguestfs] 117/146: gcc5: test-tool: Initialize local variable.

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 17:01:15 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch master
in repository libguestfs.

commit 7afccfcb1a5fadca743a698028c803af24fa0c7d
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Mon Jan 19 16:05:41 2015 +0000

    gcc5: test-tool: Initialize local variable.
    
    gcc 5 cannot prove that the variable is always initialized
    and therefore prints a warning.
    
    (cherry picked from commit 52528729f6484897c42c899f5ab4fd6cbcd1eabe)
---
 test-tool/test-tool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test-tool/test-tool.c b/test-tool/test-tool.c
index 4db39a3..2c72185 100644
--- a/test-tool/test-tool.c
+++ b/test-tool/test-tool.c
@@ -93,7 +93,7 @@ main (int argc, char *argv[])
   char **pp;
   guestfs_h *g;
   char *qemu = NULL;
-  int qemu_use_wrapper;
+  int qemu_use_wrapper = 0;
 
   for (;;) {
     c = getopt_long (argc, argv, options, long_options, &option_index);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list