diff options
author | Erich Eckner <git@eckner.net> | 2018-11-02 11:52:46 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-11-02 11:52:46 +0100 |
commit | fba464161ac1b21c5d7e82692ec090627badbb77 (patch) | |
tree | a1ae0c7e4b120d9f15de6026737b8da87523ef81 | |
parent | f485cec15bfacbc433eec1637b83e8e2836a3308 (diff) | |
download | anzeige-fba464161ac1b21c5d7e82692ec090627badbb77.tar.xz |
input_gadgets.c: fill struct with 0s
-rw-r--r-- | input_gadgets.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/input_gadgets.c b/input_gadgets.c index dfd9ea4..613727f 100644 --- a/input_gadgets.c +++ b/input_gadgets.c @@ -652,6 +652,7 @@ char *gadgets_retrieve_weather_warnings(char *output, int max_len) } xmlFree(text); struct tm time_struct; + memset(&time_struct, 0, sizeof(time_struct)); text = xml_extract_string(doc, cur_node, "onset"); if (text == NULL) { fprintf(stderr, "Failed to enter <onset> %s\n",zs.name); |