mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-02 03:30:59 +02: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
@ -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…
x
Reference in New Issue
Block a user