]> xenbits.xensource.com Git - libvirt.git/commitdiff
esx_vi: return -1 upon failure, as intended
authorMatthias Bolte <matthias.bolte@googlemail.com>
Thu, 3 Sep 2009 14:35:47 +0000 (16:35 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 3 Sep 2009 16:04:24 +0000 (18:04 +0200)
* src/esx/esx_vi.c (esxVI_Enumeration_Deserialize): Fix
reversed goto and result=-1 statements.

src/esx/esx_vi.c

index 0da908bf3bbe3914119da6da473ea110621249a9..10dd7fda6f8b2ad485bba6743dd8c85ee2f12252 100644 (file)
@@ -856,9 +856,8 @@ esxVI_Enumeration_Deserialize(virConnectPtr conn,
     return result;
 
   failure:
-    goto cleanup;
-
     result = -1;
+    goto cleanup;
 }