Skip to content

Commit

Permalink
Set initial form and chunk to NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
whoshuu committed Oct 27, 2017
1 parent c87f18a commit 749a098
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpr/session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ void Session::Impl::freeHolder(CurlHolder* holder) {
CurlHolder* Session::Impl::newHolder() {
CurlHolder* holder = new CurlHolder();
holder->handle = curl_easy_init();
holder->chunk = NULL;
holder->formpost = NULL;
return holder;
}

Expand Down

0 comments on commit 749a098

Please sign in to comment.