[Libreoffice-commits] .: sal/qa
Caolán McNamara
caolan at kemper.freedesktop.org
Sun Dec 5 06:23:30 PST 2010
sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 6880d06ed807326d030795c3eb1fb448cdb4a6e0
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Dec 5 14:23:01 2010 +0000
cppcheck: emptyStringTest
diff --git a/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx b/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx
index 30a9824..c9b0c13 100644
--- a/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx
+++ b/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx
@@ -62,7 +62,7 @@ using namespace rtl;
inline void printUString( const ::rtl::OUString & str, const sal_Char * msg = "" )
{
- if (strlen(msg) > 0)
+ if (msg && msg[0] != 0)
{
t_print("%s: ", msg );
}
More information about the Libreoffice-commits
mailing list