Check for zero length string

This commit is contained in:
Ole Loots 2013-12-28 13:34:09 +01:00
parent d09ac4433a
commit 008389e837
1 changed files with 3 additions and 5 deletions

View File

@ -989,11 +989,9 @@ void toolbar_home_click(struct s_toolbar *tb)
bw = gw->browser->bw;
assert(bw != NULL);
if(nsoption_charp(homepage_url) == NULL){
use_url = "about:welcome";
}
else {
use_url = nsoption_charp(homepage_url);
use_url = nsoption_charp(homepage_url);
if(use_url == NULL || strlen(use_url) == 0){
use_url = (char*)"about:welcome";
}
if (nsurl_create(use_url, &url) != NSERROR_OK) {