Skip to content

Commit

Permalink
Reset internal variables upon failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed May 31, 2024
1 parent 9d77578 commit 783e6c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/import/html_extract_text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2392,6 +2392,8 @@ namespace html_utilities
// is null or at the terminator then we are done
if (!m_js_text_end || !m_js_text_start || m_js_text_start[0] == 0)
{
m_current_hyperlink_length = 0;
m_js_text_start = nullptr;
return nullptr;
}

Expand Down

0 comments on commit 783e6c6

Please sign in to comment.