Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/mailsplit-maildir-muttsort' into maint
[gitweb.git]
/
name-hash.c
diff --git
a/name-hash.c
b/name-hash.c
index d8d25c23e99dddd9bd0bf83d73f2ae136d7307b5..942c45962252eba4c6f88b4f4f7593c9247749ae 100644
(file)
--- a/
name-hash.c
+++ b/
name-hash.c
@@
-24,11
+24,11
@@
static unsigned int hash_name(const char *name, int namelen)
{
unsigned int hash = 0x123;
-
do
{
+
while (namelen--)
{
unsigned char c = *name++;
c = icase_hash(c);
hash = hash*101 + c;
- }
while (--namelen);
+ }
return hash;
}