summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-02 20:27:30 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-02 20:27:30 +0800
commite91014fbc56b98d69b612f7a939138127ee21e60 (patch)
tree9892d09dea4dae09a0489c2d76fc78e0ad2521e4
parentc4d27915da7677964c84992c1e34c31ad3a281eb (diff)
Ticket history description is already set in short format
-rw-r--r--ticket.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ticket.c b/ticket.c
index 34fd7bb..88da33c 100644
--- a/ticket.c
+++ b/ticket.c
@@ -235,8 +235,6 @@ static size_t history_l_handler(void *contents, size_t size, size_t nmemb
strtok_r(line, ":", &tokensaveptr);
token = strtok_r(NULL, ":", &tokensaveptr);
- ticket_history->description = malloc(strlen(token));
- strcpy(ticket_history->description, ++token);
line = strtok_r(NULL, "\n", &linesaveptr);
strtok_r(line, ":", &tokensaveptr);