From 2e5211521d88ef0e9f0bc6230f11b43364b7e569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Tue, 16 Aug 2022 14:30:49 +0800 Subject: Revert "Init uninitialised with NULL" This reverts commit 0ea9e8be8a539d77215237b9b8359bb4e301a7b3. It caused segmentation fault. --- pikul.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pikul.c b/pikul.c index c96b51d..00d1284 100644 --- a/pikul.c +++ b/pikul.c @@ -130,7 +130,7 @@ void pikul_init(enum pikul_company company, char *provisions[]) curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); #endif shipping->headers = NULL; - const char **fields = NULL; + const char **fields; shipping_list[company] = shipping; switch (company) { case PIKUL_ANTERAJA: @@ -205,7 +205,7 @@ char *pikul_html(char *origins[], char *destinations[], double weight, const char *widget, const char *extra, const char *name, const char *value, char *code_prefixes[], char *name_prefixes[]) { - char *html = NULL; + char *html; struct pikul_service **services[PIKUL_END]; bool no_service = true; for (enum pikul_company company = PIKUL; company < PIKUL_END; company++) { -- cgit v1.2.3