From a306ecf96736779b08d1de7ec994d3d741d5dc61 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 Mar 2013 18:28:47 +0300 Subject: fix code style. --- src/utils/base64.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/utils/base64.cpp') diff --git a/src/utils/base64.cpp b/src/utils/base64.cpp index fe3d1cb90..7cd22f732 100644 --- a/src/utils/base64.cpp +++ b/src/utils/base64.cpp @@ -97,7 +97,6 @@ unsigned char *php3_base64_decode(const unsigned char *const string, { const unsigned char *current = string; int ch, i = 0, j = 0, k; - const char *chp; unsigned char *result = static_cast( calloc(length + 1, 1)); @@ -120,7 +119,7 @@ unsigned char *php3_base64_decode(const unsigned char *const string, if (ch == ' ') ch = '+'; - chp = strchr(base64_table, ch); + const char *const chp = strchr(base64_table, ch); if (!chp) continue; ch = static_cast(chp - base64_table); -- cgit v1.2.3-60-g2f50