mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
phyp: Don't try to use a string from a failed virAsprintf
This commit is contained in:
parent
d765a6f071
commit
e69aa73339
@ -213,7 +213,7 @@ phypGetSystemType(virConnectPtr conn)
|
|||||||
|
|
||||||
if (virAsprintf(&cmd, "lshmc -V") < 0) {
|
if (virAsprintf(&cmd, "lshmc -V") < 0) {
|
||||||
virReportOOMError();
|
virReportOOMError();
|
||||||
exit_status = -1;
|
return -1;
|
||||||
}
|
}
|
||||||
ret = phypExec(session, cmd, &exit_status, conn);
|
ret = phypExec(session, cmd, &exit_status, conn);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user