=================================================================== RCS file: /cvs/mandoc/roff_html.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -p -r1.1 -r1.2 --- mandoc/roff_html.c 2017/05/04 22:16:09 1.1 +++ mandoc/roff_html.c 2017/05/05 02:06:19 1.2 @@ -1,4 +1,4 @@ -/* $OpenBSD: roff_html.c,v 1.1 2017/05/04 22:16:09 schwarze Exp $ */ +/* $OpenBSD: roff_html.c,v 1.2 2017/05/05 02:06:19 schwarze Exp $ */ /* * Copyright (c) 2017 Ingo Schwarze * @@ -17,6 +17,7 @@ #include #include +#include #include "roff.h" #include "out.h" @@ -30,6 +31,7 @@ static void roff_html_pre_br(ROFF_HTML_ARGS); static const roff_html_pre_fp roff_html_pre_acts[ROFF_MAX] = { roff_html_pre_br, /* br */ + NULL, /* ft */ }; @@ -37,7 +39,8 @@ void roff_html_pre(struct html *h, const struct roff_node *n) { assert(n->tok < ROFF_MAX); - (*roff_html_pre_acts[n->tok])(h, n); + if (roff_html_pre_acts[n->tok] != NULL) + (*roff_html_pre_acts[n->tok])(h, n); } static void