From c6d5739028f2337bd0418084a319705bd5b89840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Fri, 20 Sep 2019 08:50:05 +0800 Subject: Simplify previous commit because only ticket list length is initialised --- ticket.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ticket.c b/ticket.c index bffab9b..7b71bb7 100644 --- a/ticket.c +++ b/ticket.c @@ -94,8 +94,7 @@ static size_t search_callback(void *contents, size_t size, size_t nmemb void rtclient_ticket_search(rtclient_ticketlist **listptr, const char *query) { *listptr = malloc(sizeof(rtclient_ticketlist)); - rtclient_ticketlist *list = *listptr; - list->length = 0; + (*listptr)->length = 0; request(search_callback, (void *)listptr, NULL, "%s%s" , "/REST/1.0/search/ticket?query=", query); } -- cgit v1.2.3