From: John Ferlan Date: Mon, 10 Oct 2016 15:08:26 +0000 (-0400) Subject: tests: Need to initialize data X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e5c7ce8cd02987aa854d1c2536af80c21f3b87e3;p=libvirt.git 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. --- diff --git a/tests/qemumonitorjsontest.c b/tests/qemumonitorjsontest.c index 0574f8c6b9..993a373c31 100644 --- a/tests/qemumonitorjsontest.c +++ b/tests/qemumonitorjsontest.c @@ -753,7 +753,7 @@ qemuMonitorJSONTestAttachOneChardev(virDomainXMLOptionPtr xmlopt, bool fail) { - struct qemuMonitorJSONTestAttachChardevData data; + struct qemuMonitorJSONTestAttachChardevData data = {0}; char *jsonreply = NULL; char *fulllabel = NULL; int ret = -1;