From: Fabian Keil Date: Sun, 13 Jun 2010 12:27:39 +0000 (+0000) Subject: In xtoi(), limit the scope of the variable d2. X-Git-Tag: v_3_0_17~135 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=9b523918704825efd40addd976bd7d64bf8e6980 In xtoi(), limit the scope of the variable d2. --- diff --git a/encode.c b/encode.c index e3901466..e0237c18 100644 --- a/encode.c +++ b/encode.c @@ -1,4 +1,4 @@ -const char encode_rcs[] = "$Id: encode.c,v 1.14 2008/05/21 15:38:13 fabiankeil Exp $"; +const char encode_rcs[] = "$Id: encode.c,v 1.15 2009/05/16 13:27:20 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/encode.c,v $ @@ -305,12 +305,12 @@ static int xdtoi(const int d) *********************************************************************/ int xtoi(const char *s) { - int d1, d2; + int d1; d1 = xdtoi(*s); if(d1 >= 0) { - d2 = xdtoi(*(s+1)); + int d2 = xdtoi(*(s+1)); if(d2 >= 0) { return (d1 << 4) + d2;