mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
tests: Need to initialize data
If not initialized and the virAsprintf to jsonreply or fulllablel fails, then the call to qemuMonitorTestFree will take stack data.
This commit is contained in:
parent
f6a4ccdc83
commit
e5c7ce8cd0
@ -753,7 +753,7 @@ qemuMonitorJSONTestAttachOneChardev(virDomainXMLOptionPtr xmlopt,
|
|||||||
bool fail)
|
bool fail)
|
||||||
|
|
||||||
{
|
{
|
||||||
struct qemuMonitorJSONTestAttachChardevData data;
|
struct qemuMonitorJSONTestAttachChardevData data = {0};
|
||||||
char *jsonreply = NULL;
|
char *jsonreply = NULL;
|
||||||
char *fulllabel = NULL;
|
char *fulllabel = NULL;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user