diff options
author | Erich Eckner <git@eckner.net> | 2020-06-03 17:01:41 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-06-03 17:01:41 +0200 |
commit | d0bcc0ff75fa7b460bd74c56c99843a83cf373d9 (patch) | |
tree | 44097817f8a0fda31a0bf52d2e59a5df44d04dc1 /input_gadgets.c | |
parent | 7821f46112cfdab789fc6323d95fe2171dc4b8c9 (diff) | |
download | anzeige-d0bcc0ff75fa7b460bd74c56c99843a83cf373d9.tar.xz |
input_gadgets.c: set tm 0 in between
Diffstat (limited to 'input_gadgets.c')
-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 80182f5..f4db427 100644 --- a/input_gadgets.c +++ b/input_gadgets.c @@ -846,6 +846,7 @@ char *gadgets_retrieve_weather_warnings(char *output, int max_len) } xmlFree(text); warnings[warnings_len].onset = mktime(&time_struct); + memset(&time_struct, 0, sizeof(time_struct)); text = xml_extract_string(doc, cur_node, "expires"); if (text != NULL) { if (strptime((char *)text,"%FT%T+",&time_struct) == NULL) { |