Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/daef57aaeec8c82718609...
...commit
http://git.netsurf-browser.org/netsurf.git/commit/daef57aaeec8c8271860983...
...tree
http://git.netsurf-browser.org/netsurf.git/tree/daef57aaeec8c8271860983e1...
The branch, master has been updated
via daef57aaeec8c8271860983e158609be275bdc29 (commit)
from a470aacdb2e01b52d59ebe9575dda9e46c00d593 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=daef57aaeec8c827186...
commit daef57aaeec8c8271860983e158609be275bdc29
Author: Chris Young <chris(a)unsatisfactorysoftware.co.uk>
Commit: Chris Young <chris(a)unsatisfactorysoftware.co.uk>
Check NULL pointer
diff --git a/riscos/gui/url_bar.c b/riscos/gui/url_bar.c
index d910b75..fa6b2aa 100644
--- a/riscos/gui/url_bar.c
+++ b/riscos/gui/url_bar.c
@@ -1078,7 +1078,7 @@ static void ro_gui_url_bar_set_hotlist(struct url_bar *url_bar, bool
set)
const char *ro_gui_url_bar_get_url(struct url_bar *url_bar)
{
- if (url_bar == NULL)
+ if ((url_bar == NULL) || (url_bar->text_buffer == NULL))
return NULL;
if (url_bar->text_buffer_utf8 != NULL) {
-----------------------------------------------------------------------
Summary of changes:
riscos/gui/url_bar.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/riscos/gui/url_bar.c b/riscos/gui/url_bar.c
index d910b75..fa6b2aa 100644
--- a/riscos/gui/url_bar.c
+++ b/riscos/gui/url_bar.c
@@ -1078,7 +1078,7 @@ static void ro_gui_url_bar_set_hotlist(struct url_bar *url_bar, bool
set)
const char *ro_gui_url_bar_get_url(struct url_bar *url_bar)
{
- if (url_bar == NULL)
+ if ((url_bar == NULL) || (url_bar->text_buffer == NULL))
return NULL;
if (url_bar->text_buffer_utf8 != NULL) {
--
NetSurf Browser