From: Matthias Bolte Date: Sat, 9 Apr 2011 09:59:09 +0000 (+0200) Subject: phyp: Don't try to use a string from a failed virAsprintf X-Git-Tag: v0.9.1~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e69aa73339da6fed3125024ed725d51ecc8b8243;p=thirdparty%2Flibvirt.git phyp: Don't try to use a string from a failed virAsprintf --- 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);