Fix. Compile warning about unset CURLOPT_READDATA

This commit is contained in:
Alexey Melnichuk 2014-09-11 18:49:27 +05:00
parent fe66e7223b
commit 27ed52548f

View File

@ -410,8 +410,8 @@ static int lcurl_easy_unset_HTTPPOST(lua_State *L){
we also unset it to be sure that there no way to
call default curl reader with our READDATA
*/
curl_easy_setopt(p->curl, CURLOPT_READFUNCTION, (void*)0);
curl_easy_setopt(p->curl, CURLOPT_READDATA, 0);
curl_easy_setopt(p->curl, CURLOPT_READFUNCTION, NULL);
curl_easy_setopt(p->curl, CURLOPT_READDATA, NULL);
}
lcurl_storage_remove_i(L, p->storage, CURLOPT_HTTPPOST);
}