mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-19 16:36:07 -04:00
CLEANUP: tools: drop upper case check after tolower()
In update_word_fingerprint_with_len() we convert a character to lower case, then it's checked against lower case, upper case and digits. Let's just drop the upper case check which cannot happen.
This commit is contained in:
parent
5efaece577
commit
4527620b09
1 changed files with 0 additions and 1 deletions
|
|
@ -6974,7 +6974,6 @@ void update_word_fingerprint_with_len(uint8_t *fp, struct ist word)
|
|||
c = tolower((unsigned char)*p);
|
||||
switch(c) {
|
||||
case 'a'...'z': to = c - 'a' + 1; break;
|
||||
case 'A'...'Z': to = tolower((unsigned char )c) - 'a' + 1; break;
|
||||
case '0'...'9': to = 27; break;
|
||||
default: to = 28; break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue