mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +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:
parent
b15a8a1bdf
commit
0620e83d10
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user