esx_vi: return -1 upon failure, as intended

* src/esx/esx_vi.c (esxVI_Enumeration_Deserialize): Fix
reversed goto and result=-1 statements.
This commit is contained in:
Matthias Bolte 2009-09-03 16:35:47 +02:00 committed by Jim Meyering
parent 0fa4d62986
commit 8ed3088441
1 changed files with 1 additions and 2 deletions

View File

@ -856,9 +856,8 @@ esxVI_Enumeration_Deserialize(virConnectPtr conn,
return result; return result;
failure: failure:
goto cleanup;
result = -1; result = -1;
goto cleanup;
} }