[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 5/5] parallels_utils: Check return status properly from virCommandRun()



---
 src/parallels/parallels_utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/parallels/parallels_utils.c b/src/parallels/parallels_utils.c
index dd2f0b7..171f5d0 100644
--- a/src/parallels/parallels_utils.c
+++ b/src/parallels/parallels_utils.c
@@ -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;
-- 
1.7.11.7


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]