diff options
Diffstat (limited to 'camel/hash-table-utils.c')
-rw-r--r-- | camel/hash-table-utils.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/camel/hash-table-utils.c b/camel/hash-table-utils.c index fa326020cb..cbd75296dd 100644 --- a/camel/hash-table-utils.c +++ b/camel/hash-table-utils.c @@ -62,12 +62,10 @@ g_strcase_hash (gconstpointer v) { const char *s = (char*)v; const char *p; - char c; guint h=0, g; for(p = s; *p != '\0'; p += 1) { - c = isupper ((guchar)*p) ? tolower ((guchar)*p) : *p; - h = ( h << 4 ) + c; + h = ( h << 4 ) + toupper(*p); if ( ( g = h & 0xf0000000 ) ) { h = h ^ (g >> 24); h = h ^ g; |