URI: 
       Explicitly initialize struct tm with zeroes - quark - quark web server
  HTML git clone git://git.suckless.org/quark
   DIR Log
   DIR Files
   DIR Refs
   DIR LICENSE
       ---
   DIR commit 6b508a0e073fd4e29540f8808d919ff72c1893fb
   DIR parent 660b3086172c653fa65b1e2bddd3ce99863f30d9
  HTML Author: Laslo Hunhold <dev@frign.de>
       Date:   Thu, 23 Jul 2020 16:54:21 +0200
       
       Explicitly initialize struct tm with zeroes
       
       This is recommended by the manual as strptime(), in principle,
       might only touch the fields it parses from the string. Given
       the struct tm implementations differ from operating system to
       operating system, we make sure and set everything to zero
       before passing it to strptime().
       
       Signed-off-by: Laslo Hunhold <dev@frign.de>
       
       Diffstat:
         M http.c                              |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
   DIR diff --git a/http.c b/http.c
       @@ -350,7 +350,7 @@ http_send_response(int fd, struct request *r)
        {
                struct in6_addr res;
                struct stat st;
       -        struct tm tm;
       +        struct tm tm = { 0 };
                size_t len, i;
                off_t lower, upper;
                int hasport, ipv6host;