From 0620e83d1034ddb094bc4f2ee72336d9884a4934 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 2 May 2011 17:35:18 -0600 Subject: [PATCH] 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. --- tests/xmconfigtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;