mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +03:00
Avoid "may be used uninitialized" warning.
* tests/xmconfigtest.c (testCompareParseXML): Initialize "old_priv".
This commit is contained in:
parent
97bed42f7a
commit
63dffbf1d2
@ -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*
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user