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:
parent
02c491fd7e
commit
e21b037f2b
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user