Skip to content

Commit 27ed525

Browse files
committed
Fix. Compile warning about unset CURLOPT_READDATA
1 parent fe66e72 commit 27ed525

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lceasy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,8 @@ static int lcurl_easy_unset_HTTPPOST(lua_State *L){
410410
we also unset it to be sure that there no way to
411411
call default curl reader with our READDATA
412412
*/
413-
curl_easy_setopt(p->curl, CURLOPT_READFUNCTION, (void*)0);
414-
curl_easy_setopt(p->curl, CURLOPT_READDATA, 0);
413+
curl_easy_setopt(p->curl, CURLOPT_READFUNCTION, NULL);
414+
curl_easy_setopt(p->curl, CURLOPT_READDATA, NULL);
415415
}
416416
lcurl_storage_remove_i(L, p->storage, CURLOPT_HTTPPOST);
417417
}

0 commit comments

Comments
 (0)