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

@ -1,3 +1,8 @@
Mon Jan 21 18:03:47 CET 2008 Jim Meyering <meyering@redhat.com>
Avoid "may be used uninitialized" warning.
* tests/xmconfigtest.c (testCompareParseXML): Initialize "old_priv".
Mon Jan 21 11:18:04 EST 2008 Daniel P. Berrange <berrange@redhat.com>
* src/hash.c: Split the virFree* functions into virUnref*

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