From 571463b22c7baa7f3c2c085293754286c25e01fc Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Wed, 29 Nov 2023 12:04:17 +0100 Subject: [PATCH] html: fix parser to handle empty documents Signed-off-by: Simon Rozman --- include/stdex/html.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stdex/html.hpp b/include/stdex/html.hpp index c1a582d98..c66048514 100644 --- a/include/stdex/html.hpp +++ b/include/stdex/html.hpp @@ -2259,7 +2259,7 @@ namespace stdex token_t::complete, nullptr, 0, text_type, - m_offset->get())); + m_offset != end ? m_offset->get() : nullptr)); while (m_offset != end) { auto& s = *m_offset;