Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/80e9a23fc10b0749e3dae...
...commit
http://git.netsurf-browser.org/netsurf.git/commit/80e9a23fc10b0749e3daede...
...tree
http://git.netsurf-browser.org/netsurf.git/tree/80e9a23fc10b0749e3daede51...
The branch, master has been updated
via 80e9a23fc10b0749e3daede512557e7202e438bb (commit)
from daef57aaeec8c8271860983e158609be275bdc29 (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=80e9a23fc10b0749e3d...
commit 80e9a23fc10b0749e3daede512557e7202e438bb
Author: Chris Young <chris(a)unsatisfactorysoftware.co.uk>
Commit: Chris Young <chris(a)unsatisfactorysoftware.co.uk>
Check for empty URL in RISC OS
diff --git a/riscos/gui/url_bar.c b/riscos/gui/url_bar.c
index fa6b2aa..9dbb3a5 100644
--- a/riscos/gui/url_bar.c
+++ b/riscos/gui/url_bar.c
@@ -1086,6 +1086,9 @@ const char *ro_gui_url_bar_get_url(struct url_bar *url_bar)
url_bar->text_buffer_utf8 = NULL;
}
+ if (url_bar->text_buffer[0] == '\0')
+ return (const char *) url_bar->text_buffer;
+
if (utf8_from_local_encoding(url_bar->text_buffer, 0,
&url_bar->text_buffer_utf8) == NSERROR_OK) {
return (const char *) url_bar->text_buffer_utf8;
}
-----------------------------------------------------------------------
Summary of changes:
riscos/gui/url_bar.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/riscos/gui/url_bar.c b/riscos/gui/url_bar.c
index fa6b2aa..9dbb3a5 100644
--- a/riscos/gui/url_bar.c
+++ b/riscos/gui/url_bar.c
@@ -1086,6 +1086,9 @@ const char *ro_gui_url_bar_get_url(struct url_bar *url_bar)
url_bar->text_buffer_utf8 = NULL;
}
+ if (url_bar->text_buffer[0] == '\0')
+ return (const char *) url_bar->text_buffer;
+
if (utf8_from_local_encoding(url_bar->text_buffer, 0,
&url_bar->text_buffer_utf8) == NSERROR_OK) {
return (const char *) url_bar->text_buffer_utf8;
}
--
NetSurf Browser