X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/2a4e2f15af1a697152104af8f46f0ba6aab472ff..2b60a54adb3b0bf5a9b927708085492b816a6015:/sbr/datetime.c diff --git a/sbr/datetime.c b/sbr/datetime.c index a3e0e7a3..9ecff53c 100644 --- a/sbr/datetime.c +++ b/sbr/datetime.c @@ -10,6 +10,7 @@ #include #include "h/tws.h" #include "h/utils.h" +#include "unquote.h" /* * This doesn't try to support all of the myriad date-time formats @@ -63,7 +64,7 @@ parse_datetime (const char *datetime, const char *zone, int dst, int form_1 = 0; int items_matched; - memset(tws, 0, sizeof *tws); + ZERO(tws); items_matched = sscanf (datetime, "%4d%2d%2dT%2d%2d%2d%c", &tws->tw_year, &tws->tw_mon, &tws->tw_mday,