From b4a241df39fde279bddb890299d880e00287b258 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 13 Jun 2010 12:26:04 +0000 Subject: [PATCH] In server_last_modified(), limit the scope of the variables days, hours, minutes and seconds. --- parsers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parsers.c b/parsers.c index 2f6f7653..41ad53eb 100644 --- a/parsers.c +++ b/parsers.c @@ -1,4 +1,4 @@ -const char parsers_rcs[] = "$Id: parsers.c,v 1.211 2010/05/01 18:20:50 fabiankeil Exp $"; +const char parsers_rcs[] = "$Id: parsers.c,v 1.212 2010/06/13 12:25:33 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/parsers.c,v $ @@ -2401,7 +2401,6 @@ static jb_err server_last_modified(struct client_state *csp, char **header) #endif struct tm *timeptr = NULL; time_t now, last_modified; - long int days, hours, minutes, seconds; /* * Are we messing with the Last-Modified header? @@ -2467,6 +2466,7 @@ static jb_err server_last_modified(struct client_state *csp, char **header) long int rtime = (long int)difftime(now, last_modified); if (rtime) { + long int days, hours, minutes, seconds; const int negative_delta = (rtime < 0); if (negative_delta) -- 2.39.2