]> xenbits.xensource.com Git - libvirt.git/commitdiff
phyp: Don't try to use a string from a failed virAsprintf
authorMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 9 Apr 2011 09:59:09 +0000 (11:59 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Thu, 14 Apr 2011 11:06:37 +0000 (13:06 +0200)
src/phyp/phyp_driver.c

index 042d275ac24543124eb0746795edc1fb560652af..2d8bfef4d7d86e110e48fe2b705f544b0576d2d1 100644 (file)
@@ -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);