From 8b8c158fd8de44ca79949d5f916da9eb54a0566a Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 12 Mar 2009 06:32:17 +0000 Subject: Removed segfault with empty word. Initial "full" -column support. --- mdocterm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mdocterm.c') diff --git a/mdocterm.c b/mdocterm.c index c54441e3..a41747b2 100644 --- a/mdocterm.c +++ b/mdocterm.c @@ -1,4 +1,4 @@ -/* $Id: mdocterm.c,v 1.39 2009/03/11 00:39:58 kristaps Exp $ */ +/* $Id: mdocterm.c,v 1.40 2009/03/12 06:32:17 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -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)) -- cgit v1.2.3