Check preference string to make sure its not an empty string before using.

This commit is contained in:
rjc%netscape.com 2000-01-11 22:11:07 +00:00
parent c329d776eb
commit eafd89b569

View File

@ -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