Be sure to set the Result /= 0 (i.e ECURLE_OK) when error occurred.

git-svn-id: https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/library/cURL@87340 8089f293-4706-0410-a29e-feb5c42a2edf
This commit is contained in:
jfiat
2011-09-27 08:06:20 +00:00
parent 8034123683
commit 19637b616b
2 changed files with 7 additions and 2 deletions

View File

@@ -116,9 +116,9 @@ feature -- Command
l_api := api_loader.api_pointer ("curl_easy_perform")
if l_api /= default_pointer then
Result := c_perform (l_api, a_curl_handle)
else
Result := {CURL_CODES}.eiffelcurle_error_occurred
end
ensure
valid:
end
cleanup (a_curl_handle: POINTER)