mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
parallels_utils: Check return status properly from virCommandRun()
This commit is contained in:
parent
96e8565de6
commit
08cb0433c5
@ -42,7 +42,7 @@ parallelsDoCmdRun(char **outbuf, const char *binary, va_list list)
|
||||
if (outbuf)
|
||||
virCommandSetOutputBuffer(cmd, outbuf);
|
||||
|
||||
if (virCommandRun(cmd, NULL))
|
||||
if (virCommandRun(cmd, NULL) < 0)
|
||||
goto cleanup;
|
||||
|
||||
ret = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user