Mod Cplusplus CVS committal
Author : johnksterling
Project : mod_cplusplus
Module : src
Dir : mod_cplusplus/src
Modified Files:
env_hash.cpp
Log Message:
fix debian compile error
===================================================================
RCS file: /cvsroot/modcplusplus/mod_cplusplus/src/env_hash.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- env_hash.cpp 26 Sep 2003 01:25:15 -0000 1.1
+++ env_hash.cpp 16 Jul 2005 01:22:11 -0000 1.2
@@ -10,8 +10,9 @@
unsigned long hash = 5381;
int c;
- while (c = *str++)
+ while( (c = *str++) ) {
hash = ((hash << 5) + hash) + c; /* hash * 33 + c */
+ }
return hash;
}
|