mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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…
x
Reference in New Issue
Block a user