sal/inc/rtl/string.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit fa6f55c32a3f76b4a9e7810e9d4b07ea9510f4d8 Author: Herbert Dürr <[email protected]> Date: Wed Jun 18 11:39:01 2014 +0000 #i125112# fix CStringHash functor to match full strings only diff --git a/sal/inc/rtl/string.hxx b/sal/inc/rtl/string.hxx index b05cb09..8c98a36 100644 --- a/sal/inc/rtl/string.hxx +++ b/sal/inc/rtl/string.hxx @@ -945,10 +945,10 @@ struct OStringHash struct CStringEqual { bool operator()( const char* p1, const char* p2) const { - while( *p1) + while( *p1 != '\0') if( *(p1++) != *(p2++)) return false; - return true; + return (*p2 == '\0'); } };
_______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
