Skip to content

Commit 5737bb7

Browse files
committed
Merge pull request #24 from moteus/master
Fix. Compile warning about unset CURLOPT_READDATA
2 parents b38117b + 27ed525 commit 5737bb7

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)