From: Eric Blake Date: Mon, 2 May 2011 23:35:18 +0000 (-0600) Subject: tests: avoid compiler warning X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0620e83d1034ddb094bc4f2ee72336d9884a4934;p=libvirt.git tests: avoid compiler warning ../../tests/xmconfigtest.c: In function 'testCompareParseXML': ../../tests/xmconfigtest.c:49:19: error: 'conn' may be used uninitialized in this function [-Wuninitialized] * tests/xmconfigtest.c (testCompareParseXML): Initialize variable. --- diff --git a/tests/xmconfigtest.c b/tests/xmconfigtest.c index 02a8900cc7..6022621a1f 100644 --- a/tests/xmconfigtest.c +++ b/tests/xmconfigtest.c @@ -46,7 +46,7 @@ testCompareParseXML(const char *xmcfg, const char *xml, int xendConfigVersion) char *gotxmcfgData = NULL; virConfPtr conf = NULL; int ret = -1; - virConnectPtr conn; + virConnectPtr conn = NULL; int wrote = 4096; struct _xenUnifiedPrivate priv; virDomainDefPtr def = NULL;