Skip to content

Commit 1083a7d

Browse files
committed
Move variable to inner block
1 parent 3b5d34e commit 1083a7d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/actions/transformations/url_decode_uni.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static inline bool inplace(std::string &value,
3535
const auto input_len = value.length();
3636

3737
std::string::size_type i, count, fact, j, xv;
38-
int Code, hmap = -1;
38+
int hmap = -1;
3939

4040
i = count = 0;
4141
while (i < input_len) {
@@ -50,13 +50,16 @@ static inline bool inplace(std::string &value,
5050
(VALID_HEX(input[i + 3])) &&
5151
(VALID_HEX(input[i + 4])) &&
5252
(VALID_HEX(input[i + 5]))) {
53-
Code = 0;
53+
5454
fact = 1;
5555

5656
if (t
5757
&& t->m_rules->m_unicodeMapTable.m_set == true
5858
&& t->m_rules->m_unicodeMapTable.m_unicodeMapTable != NULL
5959
&& t->m_rules->m_unicodeMapTable.m_unicodeCodePage > 0) {
60+
61+
int Code = 0;
62+
6063
for (j = 5; j >= 2; j--) {
6164
if (isxdigit((input[i+j]))) {
6265
if (input[i+j] >= 97) {

0 commit comments

Comments
 (0)