From 2820e9cf1e6aa000562e0dea7707dbd0b324969b Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Fri, 3 Nov 2006 19:00:46 +0000 Subject: - MFH: Fixed bug #38698 --- ext/dba/libcdb/cdb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/dba/libcdb') diff --git a/ext/dba/libcdb/cdb.c b/ext/dba/libcdb/cdb.c index acafe952f3..af6e1bb8f0 100644 --- a/ext/dba/libcdb/cdb.c +++ b/ext/dba/libcdb/cdb.c @@ -68,10 +68,11 @@ static int cdb_match(struct cdb *c, char *key, unsigned int len, uint32 pos TSRM uint32 cdb_hash(char *buf, unsigned int len) { uint32 h; + const unsigned char * b = buf; h = CDB_HASHSTART; while (len--) { - h = ( h + (h << 5)) ^ (*buf++); + h = ( h + (h << 5)) ^ (*b++); } return h; } -- cgit v1.2.1