summaryrefslogtreecommitdiffstats
path: root/mdocterm.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdocterm.c')
-rw-r--r--mdocterm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdocterm.c b/mdocterm.c
index fb4b31de..a2fb262a 100644
--- a/mdocterm.c
+++ b/mdocterm.c
@@ -430,8 +430,8 @@ word(struct termp *p, const char *word)
return;
}
- len = strlen(word);
- assert(len > 0);
+ if (0 == (len = strlen(word)))
+ errx(1, "blank line not in literal context");
if (mdoc_isdelim(word)) {
if ( ! (p->flags & TERMP_IGNDELIM))