Fixed a nasty bug

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8482 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2004-07-27 07:15:43 +00:00
parent 6cd5d5b1f1
commit f7021a391f

View File

@ -345,9 +345,9 @@ status_t CursorSet::FindCursor(cursor_which which, ServerCursor **cursor)
*/
const char *CursorSet::GetName(void)
{
BString name;
if(FindString("name",&name)==B_OK)
return name.String();
const char *name = NULL;
if (FindString("name", &name) == B_OK)
return name;
return NULL;
}