Check for empty URL in RISC OS

This commit is contained in:
Chris Young 2015-07-19 10:45:53 +01:00
parent daef57aaee
commit 80e9a23fc1

View File

@ -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;
}