From 08cb0433c594ce8fc92f5ad53a34f339f2caed5c Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Wed, 23 Jan 2013 17:04:48 -0500 Subject: [PATCH] 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 dd2f0b77ad..171f5d03d0 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;