commit 8445c4b04e22a13617f12354cc1f47971aea819b parent 5220c485bc21bdc110da7c83ae18c0f148687242 Author: Andrej Kacian <ticho@claws-mail.org> Date: Tue, 6 Aug 2019 10:46:01 +0200 Fix crash in litehtml_viewer when <base> tag has no href Diffstat:
| M | src/plugins/litehtml_viewer/lh_widget.cpp | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/plugins/litehtml_viewer/lh_widget.cpp b/src/plugins/litehtml_viewer/lh_widget.cpp @@ -139,7 +139,11 @@ void lh_widget::set_base_url(const litehtml::tchar_t* base_url) { debug_print("lh_widget set_base_url '%s'\n", (base_url ? base_url : "(null)")); - m_base_url = base_url; + if (base_url) + m_base_url = base_url; + else + m_base_url.clear(); + return; }