Should fix bug 326

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17015 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2006-04-05 19:15:54 +00:00
parent 02c491fd7e
commit e21b037f2b

View File

@ -339,7 +339,7 @@ BStatusBar::SetBarHeight(float height)
void
BStatusBar::SetText (const char *string)
BStatusBar::SetText(const char *string)
{
SetTextData(&fText, string);
@ -616,7 +616,7 @@ BStatusBar::SetTextData(char **dest, const char *source)
*dest = NULL;
}
if (source != NULL)
if (source != NULL && source != NULL)
*dest = strdup(source);
}