diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-08-14 15:03:06 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-08-14 15:03:06 +0800 |
commit | 0ea9e8be8a539d77215237b9b8359bb4e301a7b3 (patch) | |
tree | 218e9daaa5ea45e9e7b8e518bde355d31e60d2eb | |
parent | b5177f7c1e522c5559efe33882612a64cbe22528 (diff) |
Init uninitialised with NULL
-rw-r--r-- | pikul.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; + const char **fields = NULL; 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; + char *html = NULL; struct pikul_service **services[PIKUL_END]; bool no_service = true; for (enum pikul_company company = PIKUL; company < PIKUL_END; company++) { |