提交 ff4eac59 编写于 作者: J John Ferlan 提交者: Peter Krempa

virnetsockettest: Need to initialize 'path'

It was possible to call VIR_FREE in cleanup prior to initialization
上级 9b90644e
......@@ -207,7 +207,7 @@ static int testSocketUNIXAccept(const void *data ATTRIBUTE_UNUSED)
virNetSocketPtr csock = NULL; /* Client socket */
int ret = -1;
char *path;
char *path = NULL;
char *tmpdir;
char template[] = "/tmp/libvirt_XXXXXX";
......@@ -257,7 +257,7 @@ static int testSocketUNIXAddrs(const void *data ATTRIBUTE_UNUSED)
virNetSocketPtr csock = NULL; /* Client socket */
int ret = -1;
char *path;
char *path = NULL;
char *tmpdir;
char template[] = "/tmp/libvirt_XXXXXX";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册