summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
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]))