diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-20 08:44:36 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-20 08:44:36 +0800 |
commit | ac4aa1e741bd15d33bdaa959be1a73732eda8359 (patch) | |
tree | d591a2dfd032cf69e5dd61c30a1fd596e4c8442c | |
parent | d7e3f9f3cddf314478c1ecd4d9cfebde79f3e945 (diff) |
Make sure the post in the container is NULL too when it needs to be
-rw-r--r-- | request.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -170,7 +170,7 @@ void request(void (*handler)(icclient_response *), void (*callback)(void *), str curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L); struct container *container = malloc(sizeof(struct container)); container->curl = curl; - container->post = post; + container->post = post ? post : NULL; container->handler = handler; container->response = response; thrd_t thread; |