mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 01:09:39 +03:00
Check for zero length string
This commit is contained in:
parent
d09ac4433a
commit
008389e837
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user