summaryrefslogtreecommitdiffstats
path: root/mandoc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mandoc.c')
-rw-r--r--mandoc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mandoc.c b/mandoc.c
index 6677295e..ce480a9f 100644
--- a/mandoc.c
+++ b/mandoc.c
@@ -305,7 +305,8 @@ int
mandoc_eos(const char *p, size_t sz)
{
- assert(sz);
+ if (0 == sz)
+ return(0);
switch (p[(int)sz - 1]) {
case ('.'):