initialize pointer to NULL

cmd is not initialized to NULL, but we try to freed it if we
meet some error.
This commit is contained in:
Wen Congyang 2011-07-04 14:00:28 +08:00 committed by Daniel Veillard
parent 5dc404b71d
commit 1aa5f85bb8

View File

@ -5827,7 +5827,7 @@ virDomainDefPtr qemuParseCommandLine(virCapsPtr caps,
const char **nics = NULL;
int video = VIR_DOMAIN_VIDEO_TYPE_CIRRUS;
int nvirtiodisk = 0;
qemuDomainCmdlineDefPtr cmd;
qemuDomainCmdlineDefPtr cmd = NULL;
if (!progargv[0]) {
qemuReportError(VIR_ERR_INTERNAL_ERROR,