summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-05-18 17:47:47 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-05-18 17:47:47 +0000
commitae06230fac2b15973cee3f4eb09a4f68a079d5dd (patch)
treef850223038b22c0554dd8282b0456de600d81f5d
parente5b75f0314268a74331da39f117243e01260176d (diff)
downloadmandoc-ae06230fac2b15973cee3f4eb09a4f68a079d5dd.tar.gz
Should termp_xx_pre() ever get called for a macro it cannot handle,
use abort(3), just like in the three other comparable cases in this file, instead of ignoring the problem and causing a null pointer access. Cosmetical issue reported by Ulrich Spoerlein <uqs@spoerlein.net> found by Coverity Scan CID 976115. No functional change.
-rw-r--r--mdoc_term.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 3f21bb75..015af506 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1756,7 +1756,8 @@ termp_xx_pre(DECL_ARGS)
pp = "UNIX";
break;
default:
- break;
+ abort();
+ /* NOTREACHED */
}
term_word(p, pp);