mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Avoid "may be used uninitialized" warning.
* tests/xmconfigtest.c (testCompareParseXML): Initialize "old_priv".
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user