mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
Check preference string to make sure its not an empty string before using.
This commit is contained in:
parent
c329d776eb
commit
eafd89b569
@ -1749,7 +1749,7 @@ nsBookmarksService::Init()
|
||||
{
|
||||
char *prefVal = nsnull;
|
||||
if (NS_SUCCEEDED(rv = prefServ->CopyCharPref("custtoolbar.personal_toolbar_folder",
|
||||
&prefVal)) && (prefVal))
|
||||
&prefVal)) && (prefVal) && (*prefVal))
|
||||
{
|
||||
mPersonalToolbarName = prefVal;
|
||||
#ifdef DEBUG
|
||||
|
Loading…
Reference in New Issue
Block a user