summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;