In server_last_modified(), limit the scope of the variables days, hours, minutes...
authorFabian Keil <fk@fabiankeil.de>
Sun, 13 Jun 2010 12:26:04 +0000 (12:26 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sun, 13 Jun 2010 12:26:04 +0000 (12:26 +0000)
parsers.c

index 2f6f765..41ad53e 100644 (file)
--- 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)