diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-11-22 06:33:42 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-11-22 06:33:42 +0000 |
commit | 708d358460724d37e671e5f2a95353010135b0db (patch) | |
tree | 81bfbd41d5f98e30bdfb278092811c08d234a2c4 | |
parent | 5cb339f6d3759e566da5ee7eef5d7609570ee8f6 (diff) | |
download | libbu++-708d358460724d37e671e5f2a95353010135b0db.tar.gz libbu++-708d358460724d37e671e5f2a95353010135b0db.tar.bz2 libbu++-708d358460724d37e671e5f2a95353010135b0db.tar.xz libbu++-708d358460724d37e671e5f2a95353010135b0db.zip |
Yup, slightly more optimized, still works.
-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 d477aff..3fb4f52 100644 --- a/src/hash.cpp +++ b/src/hash.cpp | |||
@@ -45,7 +45,7 @@ template<> bool __cmpHashKeys<const char *>( const char *a, const char *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' ) |
49 | return true; | 49 | return true; |
50 | 50 | ||
51 | return false; | 51 | return false; |