summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-20 08:44:36 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-20 08:44:36 +0800
commitac4aa1e741bd15d33bdaa959be1a73732eda8359 (patch)
treed591a2dfd032cf69e5dd61c30a1fd596e4c8442c
parentd7e3f9f3cddf314478c1ecd4d9cfebde79f3e945 (diff)
Make sure the post in the container is NULL too when it needs to be
-rw-r--r--request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/request.c b/request.c
index 8668f4b..f61d4e8 100644
--- a/request.c
+++ b/request.c
@@ -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;