diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-12-05 14:23:01 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-05 14:23:01 +0000 |
commit | 3facbad1ecbb5ac7ebbf1fa8cfb060be9147429a (patch) | |
tree | 0a948402f487a50c01d07d601ad7dd1037bde677 /sal/qa/rtl/bootstrap | |
parent | 1e8a123248cb4f6a49f48c8f83a1dc2bb126e481 (diff) |
cppcheck: emptyStringTest
Diffstat (limited to 'sal/qa/rtl/bootstrap')
-rw-r--r-- | sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx b/sal/qa/rtl/bootstrap/rtl_Bootstrap.cxx index 63be30513c38..daa992a1bd4f 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 ); } |