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:
John Ferlan 2016-10-10 11:08:26 -04:00
parent f6a4ccdc83
commit e5c7ce8cd0

View File

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