aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mandoc.c')
-rw-r--r--mandoc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mandoc.c b/mandoc.c
index 4d087956..37216da6 100644
--- a/mandoc.c
+++ b/mandoc.c
@@ -1,4 +1,4 @@
-/* $Id: mandoc.c,v 1.12 2010/05/12 17:08:03 kristaps Exp $ */
+/* $Id: mandoc.c,v 1.13 2010/05/14 14:09:13 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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 ('.'):