From e69aa73339da6fed3125024ed725d51ecc8b8243 Mon Sep 17 00:00:00 2001 From: Matthias Bolte Date: Sat, 9 Apr 2011 11:59:09 +0200 Subject: [PATCH] phyp: Don't try to use a string from a failed virAsprintf --- src/phyp/phyp_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phyp/phyp_driver.c b/src/phyp/phyp_driver.c index 042d275ac2..2d8bfef4d7 100644 --- a/src/phyp/phyp_driver.c +++ b/src/phyp/phyp_driver.c @@ -213,7 +213,7 @@ phypGetSystemType(virConnectPtr conn) if (virAsprintf(&cmd, "lshmc -V") < 0) { virReportOOMError(); - exit_status = -1; + return -1; } ret = phypExec(session, cmd, &exit_status, conn); -- GitLab