summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-21 13:26:30 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-21 13:26:30 +0000
commit13ccee516125794901c44d41d8f589bddbae5aa7 (patch)
tree7644a2abd2f81a24bcd4a9309c10011be057b3ed /term.c
parentdae89805fb05da280783cd70cec797acecfd8e02 (diff)
downloadmandoc-13ccee516125794901c44d41d8f589bddbae5aa7.tar.gz
Handling -width="" in lists.
Diffstat (limited to 'term.c')
-rw-r--r--term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/term.c b/term.c
index ad783444..0e97abc1 100644
--- a/term.c
+++ b/term.c
@@ -320,8 +320,8 @@ arg_width(const struct mdoc_argv *arg, int pos)
if (0 == strcmp(arg->value[pos], "indent-two"))
return(INDENT * 2);
- len = (int)strlen(arg->value[pos]);
- assert(len > 0);
+ if (0 == (len = (int)strlen(arg->value[pos])))
+ return(0);
for (i = 0; i < len - 1; i++)
if ( ! isdigit((u_char)arg->value[pos][i]))