mirror of https://gitee.com/openkylin/libvirt.git
qemuBuildCommandLine: Properly check return value of qemuBuildShmemCommandLine
Use the customary '< 0' check for return value. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
748c4a6b74
commit
4c7e733e79
|
@ -10882,7 +10882,7 @@ qemuBuildCommandLine(virQEMUDriver *driver,
|
|||
for (i = 0; i < def->nshmems; i++) {
|
||||
if (qemuBuildShmemCommandLine(logManager, secManager, cmd, cfg,
|
||||
def, def->shmems[i], qemuCaps,
|
||||
chardevStdioLogd))
|
||||
chardevStdioLogd) < 0)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue