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:
@@ -339,7 +339,7 @@ BStatusBar::SetBarHeight(float height)
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BStatusBar::SetText (const char *string)
|
BStatusBar::SetText(const char *string)
|
||||||
{
|
{
|
||||||
SetTextData(&fText, string);
|
SetTextData(&fText, string);
|
||||||
|
|
||||||
@@ -616,7 +616,7 @@ BStatusBar::SetTextData(char **dest, const char *source)
|
|||||||
*dest = NULL;
|
*dest = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (source != NULL)
|
if (source != NULL && source != NULL)
|
||||||
*dest = strdup(source);
|
*dest = strdup(source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user