From: Fabian Keil Date: Sun, 13 Jun 2010 12:26:32 +0000 (+0000) Subject: In client_if_modified_since(), limit the scope of the variables hours, minutes and... X-Git-Tag: v_3_0_17~137 X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/%22https:/@default-cgi@edit-actions-add-url-form?a=commitdiff_plain;h=06f3e1dbc141446010f1a18193e5e6b0cadc6658;p=privoxy.git In client_if_modified_since(), limit the scope of the variables hours, minutes and seconds. --- diff --git a/parsers.c b/parsers.c index 41ad53eb..e2a70eaa 100644 --- a/parsers.c +++ b/parsers.c @@ -1,4 +1,4 @@ -const char parsers_rcs[] = "$Id: parsers.c,v 1.212 2010/06/13 12:25:33 fabiankeil Exp $"; +const char parsers_rcs[] = "$Id: parsers.c,v 1.213 2010/06/13 12:26:04 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/parsers.c,v $ @@ -3153,7 +3153,6 @@ static jb_err client_if_modified_since(struct client_state *csp, char **header) struct tm *timeptr = NULL; time_t tm = 0; const char *newval; - long int hours, minutes, seconds; char * endptr; if ( 0 == strcmpic(*header, "If-Modified-Since: Wed, 08 Jun 1955 12:00:00 GMT")) @@ -3188,6 +3187,7 @@ static jb_err client_if_modified_since(struct client_state *csp, char **header) } else { + long int hours, minutes, seconds; long int rtime = strtol(newval, &endptr, 0); const int negative_range = (rtime < 0);