diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-11-22 06:31:53 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-11-22 06:31:53 +0000 |
commit | 5cb339f6d3759e566da5ee7eef5d7609570ee8f6 (patch) | |
tree | 124908ad391aebc38f8ea5d3143aa42c3f4ce175 /src/hash.cpp | |
parent | a6e4c198a23217f126a5abf759b91382dd829e90 (diff) | |
download | libbu++-5cb339f6d3759e566da5ee7eef5d7609570ee8f6.tar.gz libbu++-5cb339f6d3759e566da5ee7eef5d7609570ee8f6.tar.bz2 libbu++-5cb339f6d3759e566da5ee7eef5d7609570ee8f6.tar.xz libbu++-5cb339f6d3759e566da5ee7eef5d7609570ee8f6.zip |
Fixed a silly mistake that made the whole thing useless when using strings.
Diffstat (limited to 'src/hash.cpp')
-rw-r--r-- | src/hash.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hash.cpp b/src/hash.cpp index a32fa2a..d477aff 100644 --- a/src/hash.cpp +++ b/src/hash.cpp | |||
@@ -44,7 +44,7 @@ template<> bool __cmpHashKeys<const char *>( const char *a, const char *b ) | |||
44 | if( a == b ) | 44 | if( a == b ) |
45 | return true; | 45 | return true; |
46 | 46 | ||
47 | for(; *a != *b; a++, b++ ) | 47 | for(; *a == *b; a++, b++ ) |
48 | if( *a == '\0' && *b == '\0' ) | 48 | if( *a == '\0' && *b == '\0' ) |
49 | return true; | 49 | return true; |
50 | 50 | ||