summaryrefslogtreecommitdiff
path: root/ticket.c
diff options
context:
space:
mode:
Diffstat (limited to 'ticket.c')
-rw-r--r--ticket.c3
1 files changed, 1 insertions, 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);
}