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:
parent
6cd5d5b1f1
commit
f7021a391f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user