diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2021-11-01 12:48:32 +1100 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2021-11-02 00:03:25 +1100 |
commit | da9ea393899990bdc0861e4a40eff684c9989343 (patch) | |
tree | 6e076836015cad44770495cd699e0d2c242b746a /src/devices/grohtml | |
parent | 0a111a916ee344d5046e244dcc95b4d3f49c352d (diff) | |
download | groff-git-da9ea393899990bdc0861e4a40eff684c9989343.tar.gz |
[grohtml]: Add assertion.
* src/devices/grohtml/post-html.cpp (html_printer::do_file_components):
Add assertion.
The command "echo | ./build/test-groff -Thtml" was core dumping on me.
`current_paragraph` was a null pointer. groff 1.22.4 was fine. A
bisect did not track down the problem, and it no longer manifested after
return to Git HEAD and rebuilding. I presume there is a missing
dependency somewhere that skipped necessary rebuilding/relinking. Until
that can be tracked down, explicitly slam on the brakes if the situation
arises again.
Diffstat (limited to 'src/devices/grohtml')
-rw-r--r-- | src/devices/grohtml/post-html.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/devices/grohtml/post-html.cpp b/src/devices/grohtml/post-html.cpp index 575828063..e71621797 100644 --- a/src/devices/grohtml/post-html.cpp +++ b/src/devices/grohtml/post-html.cpp @@ -5042,6 +5042,7 @@ void html_printer::do_file_components (void) if (fragment_no > 1) write_navigation(top, prev, next, current); else { + assert(current_paragraph != 0); current_paragraph->done_para(); write_rule(); if (valid_flag) { |