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

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 16:56:46 UTC 2015


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

bengen pushed a commit to branch experimental
in repository libguestfs.

commit 52528729f6484897c42c899f5ab4fd6cbcd1eabe
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.
---
 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 c7ba846..f41b8fd 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