Avoid "may be used uninitialized" warning.

* tests/xmconfigtest.c (testCompareParseXML): Initialize "old_priv".
This commit is contained in:
Jim Meyering
2008-01-21 17:06:47 +00:00
parent 97bed42f7a
commit 63dffbf1d2
2 changed files with 6 additions and 1 deletions

View File

@@ -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];