Skip to content

Commit ecf63ce

Browse files
committed
Move variable to inner block (rules_set_properties.cc)
1 parent 227ff53 commit ecf63ce

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/rules_set_properties.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ void ConfigUnicodeMap::loadConfig(std::string f, double configCodePage,
3232
char *hmap = NULL;
3333
const char *p = NULL;
3434
char *savedptr = NULL;
35-
const char *ucode = NULL;
3635
int found = 0;
3736
int length = 0;
3837
int processing = 0;
@@ -99,7 +98,7 @@ void ConfigUnicodeMap::loadConfig(std::string f, double configCodePage,
9998
processing = 1;
10099

101100
if (mapping != NULL) {
102-
ucode = strtok_r(mapping, ":", &hmap);
101+
const char *ucode = strtok_r(mapping, ":", &hmap);
103102
int code = strtol(ucode, nullptr, 16);
104103
int map = strtol(hmap, nullptr, 16);
105104
if (code >= 0 && code <= 65535) {

0 commit comments

Comments
 (0)