From 224fd963fdac8463fe4c29b8a9f6ad15fa5300a1 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Thu, 11 Apr 2013 01:30:34 +0200 Subject: Home toolbar button doesn't crash anymore when homepage_url is null. --- atari/toolbar.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/atari/toolbar.c b/atari/toolbar.c index 05fa6ae47..ade5ca3fc 100644 --- a/atari/toolbar.c +++ b/atari/toolbar.c @@ -953,6 +953,10 @@ void toolbar_home_click(struct s_toolbar *tb) bw = gw->browser->bw; assert(bw != NULL); + if(nsoption_charp(homepage_url) == NULL){ + return; + } + if (nsurl_create(nsoption_charp(homepage_url), &url) != NSERROR_OK) { warn_user("NoMemory", 0); } else { -- cgit v1.2.3