mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
5dc404b71d
commit
1aa5f85bb8
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue