mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
virnetsockettest: Need to initialize 'path'
It was possible to call VIR_FREE in cleanup prior to initialization
This commit is contained in:
parent
9b90644e7d
commit
ff4eac595f
@ -207,7 +207,7 @@ static int testSocketUNIXAccept(const void *data ATTRIBUTE_UNUSED)
|
|||||||
virNetSocketPtr csock = NULL; /* Client socket */
|
virNetSocketPtr csock = NULL; /* Client socket */
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
char *path;
|
char *path = NULL;
|
||||||
char *tmpdir;
|
char *tmpdir;
|
||||||
char template[] = "/tmp/libvirt_XXXXXX";
|
char template[] = "/tmp/libvirt_XXXXXX";
|
||||||
|
|
||||||
@ -257,7 +257,7 @@ static int testSocketUNIXAddrs(const void *data ATTRIBUTE_UNUSED)
|
|||||||
virNetSocketPtr csock = NULL; /* Client socket */
|
virNetSocketPtr csock = NULL; /* Client socket */
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
char *path;
|
char *path = NULL;
|
||||||
char *tmpdir;
|
char *tmpdir;
|
||||||
char template[] = "/tmp/libvirt_XXXXXX";
|
char template[] = "/tmp/libvirt_XXXXXX";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user