cppcheck: emptyStringTest

This commit is contained in:
Caolán McNamara 2010-12-05 14:23:01 +00:00
parent 1e8a123248
commit 3facbad1ec

View file

@ -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 );
}