From 5eba456f0147b12a6247cd7aa41e55d121962358 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 15 Dec 2009 00:03:01 +0000 Subject: Bugfix in Bu::FBasicString for null string comparisons. --- src/fbasicstring.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fbasicstring.h b/src/fbasicstring.h index 1c1f8a2..5271b62 100644 --- a/src/fbasicstring.h +++ b/src/fbasicstring.h @@ -1467,8 +1467,8 @@ namespace Bu return true; if( core->pFirst == pData.core->pFirst ) return true; - if( core->pFirst == NULL ) - return false; + if( (core->pFirst == 0 && pData.core->nLength == 0) ) + return true; if( core->nLength != pData.core->nLength ) return false; -- cgit v1.2.3