1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-25 01:34:11 +03:00

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.
This commit is contained in:
Eric Blake 2011-05-02 17:35:18 -06:00
parent b15a8a1bdf
commit 0620e83d10

View File

@ -46,7 +46,7 @@ testCompareParseXML(const char *xmcfg, const char *xml, int xendConfigVersion)
char *gotxmcfgData = NULL; char *gotxmcfgData = NULL;
virConfPtr conf = NULL; virConfPtr conf = NULL;
int ret = -1; int ret = -1;
virConnectPtr conn; virConnectPtr conn = NULL;
int wrote = 4096; int wrote = 4096;
struct _xenUnifiedPrivate priv; struct _xenUnifiedPrivate priv;
virDomainDefPtr def = NULL; virDomainDefPtr def = NULL;