]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix a few 'used uninitialized' warnings.
authorCole Robinson <crobinso@redhat.com>
Wed, 13 May 2009 17:43:47 +0000 (17:43 +0000)
committerCole Robinson <crobinso@redhat.com>
Wed, 13 May 2009 17:43:47 +0000 (17:43 +0000)
ChangeLog
src/virsh.c

index ba639194af27e956d203357dd51fbf72427ea7b5..dd1bc7514f4aa8b37738455a07235ba30e225ca5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed May 13 13:37:02 EDT 2009 Cole Robinson <crobinso@redhat.com>
+
+       * src/virsh.c: Fix a few 'used uninitialized' warnings.
+
 Wed May 13 18:06:17 CEST 2009 Daniel Veillard <veillard@redhat.com>
 
        * src/buf.c: avoid an XML attribute escaping bug #499791
index 34beeb5e3fe4885325bc90fe08000af692395962..ce90d3d856deada4e4b3c25410ba8dfc070008a0 100644 (file)
@@ -4096,9 +4096,9 @@ cleanup:
 static xmlChar *
 makeCloneXML(char *origxml, char *newname) {
 
-    xmlDocPtr doc;
-    xmlXPathContextPtr ctxt;
-    xmlXPathObjectPtr obj;
+    xmlDocPtr doc = NULL;
+    xmlXPathContextPtr ctxt = NULL;
+    xmlXPathObjectPtr obj = NULL;
     xmlChar *newxml = NULL;
     int size;