aboutsummaryrefslogtreecommitdiff
path: root/src/hash.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/hash.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash.cpp b/src/hash.cpp
index 004d6dd..c52e6b1 100644
--- a/src/hash.cpp
+++ b/src/hash.cpp
@@ -45,7 +45,7 @@ template<> bool __cmpHashKeys<const char *>( const char * const &a, const char *
45 return true; 45 return true;
46 46
47 for(int j=0; a[j] == b[j]; j++ ) 47 for(int j=0; a[j] == b[j]; j++ )
48 if( *a == '\0' ) 48 if( a[j] == '\0' )
49 return true; 49 return true;
50 50
51 return false; 51 return false;
@@ -74,7 +74,7 @@ template<> bool __cmpHashKeys<char *>( char * const &a, char * const &b )
74 return true; 74 return true;
75 75
76 for(int j=0; a[j] == b[j]; j++ ) 76 for(int j=0; a[j] == b[j]; j++ )
77 if( *a == '\0' ) 77 if( a[j] == '\0' )
78 return true; 78 return true;
79 79
80 return false; 80 return false;