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:
Peter Krempa 2021-11-03 13:29:15 +01:00
parent 748c4a6b74
commit 4c7e733e79
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}