]> xenbits.xensource.com Git - libvirt.git/commitdiff
Avoid "may be used uninitialized" warning.
authorJim Meyering <meyering@redhat.com>
Mon, 21 Jan 2008 17:06:47 +0000 (17:06 +0000)
committerJim Meyering <meyering@redhat.com>
Mon, 21 Jan 2008 17:06:47 +0000 (17:06 +0000)
* tests/xmconfigtest.c (testCompareParseXML): Initialize "old_priv".

ChangeLog
tests/xmconfigtest.c

index e7f78458884a221743a3eb8e4fbe91ceab98f2cb..b4a5f146623fbc9760c35bff19c177aa52aeb148 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jan 21 18:03:47 CET 2008  Jim Meyering  <meyering@redhat.com>
+
+       Avoid "may be used uninitialized" warning.
+       * tests/xmconfigtest.c (testCompareParseXML): Initialize "old_priv".
+
 Mon Jan 21 11:18:04 EST 2008 Daniel P. Berrange <berrange@redhat.com>
 
        * src/hash.c: Split the virFree* functions into virUnref*
index d66b66015cbc18d237e562ed2e9b1869cb566f66..f49ca6c65fe068ad1f0d973fa22a26252bd84382 100644 (file)
@@ -51,7 +51,7 @@ static int testCompareParseXML(const char *xmcfg_rel, const char *xml_rel,
     int ret = -1;
     virConnectPtr conn;
     int wrote = MAX_FILE;
-    void *old_priv;
+    void *old_priv = NULL;
     struct _xenUnifiedPrivate priv;
     char xmcfg[PATH_MAX];
     char xml[PATH_MAX];