aboutsummaryrefslogtreecommitdiff
path: root/lib/formdata.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/formdata.c')
-rw-r--r--lib/formdata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/formdata.c b/lib/formdata.c
index 0fbb23aa7..a42ea5390 100644
--- a/lib/formdata.c
+++ b/lib/formdata.c
@@ -895,11 +895,11 @@ void Curl_formclean(struct FormData *form)
int curl_formget(struct curl_httppost *form, void *arg,
curl_formget_callback append)
{
- CURLFORMcode rc;
+ CURLcode rc;
curl_off_t size;
struct FormData *data, *ptr;
- if ((rc = Curl_getFormData(&data, form, &size))) {
+ if ((rc = Curl_getFormData(&data, form, &size)) != CURLE_OK) {
return (int)rc;
}