[Pkg-libvirt-commits] [libguestfs] 25/54: appliance: Initialize local variables because gcc cannot track that they are not used uninitialized.

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 9 11:21:16 UTC 2014


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

bengen pushed a commit to branch debian
in repository libguestfs.

commit 9a394577632188f4d02e1c7c27767a7befdf04ed
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Wed Feb 26 10:10:20 2014 -0500

    appliance: Initialize local variables because gcc cannot track that they are not used uninitialized.
    
    (cherry picked from commit eb81df93d0b01211014132d196d95a88c762a399)
---
 src/appliance.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/appliance.c b/src/appliance.c
index 3eaf635..d7d7e0c 100644
--- a/src/appliance.c
+++ b/src/appliance.c
@@ -146,7 +146,7 @@ guestfs___build_appliance (guestfs_h *g,
                            char **appliance_rtn)
 {
   int r;
-  char *kernel, *dtb, *initrd, *appliance;
+  char *kernel = NULL, *dtb = NULL, *initrd = NULL, *appliance = NULL;
 
   gl_lock_lock (building_lock);
   r = build_appliance (g, &kernel, &dtb, &initrd, &appliance);

-- 
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