projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b302b2d
)
In xtoi(), limit the scope of the variable d2.
author
Fabian Keil
<fk@fabiankeil.de>
Sun, 13 Jun 2010 12:27:39 +0000
(12:27 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Sun, 13 Jun 2010 12:27:39 +0000
(12:27 +0000)
encode.c
patch
|
blob
|
history
diff --git
a/encode.c
b/encode.c
index
e390146
..
e0237c1
100644
(file)
--- a/
encode.c
+++ b/
encode.c
@@
-1,4
+1,4
@@
-const char encode_rcs[] = "$Id: encode.c,v 1.1
4 2008/05/21 15:38:13
fabiankeil Exp $";
+const char encode_rcs[] = "$Id: encode.c,v 1.1
5 2009/05/16 13:27:20
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/encode.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/encode.c,v $
@@
-305,12
+305,12
@@
static int xdtoi(const int d)
*********************************************************************/
int xtoi(const char *s)
{
*********************************************************************/
int xtoi(const char *s)
{
- int d1
, d2
;
+ int d1;
d1 = xdtoi(*s);
if(d1 >= 0)
{
d1 = xdtoi(*s);
if(d1 >= 0)
{
- d2 = xdtoi(*(s+1));
+
int
d2 = xdtoi(*(s+1));
if(d2 >= 0)
{
return (d1 << 4) + d2;
if(d2 >= 0)
{
return (d1 << 4) + d2;