summaryrefslogtreecommitdiffstats
path: root/roff.c
diff options
context:
space:
mode:
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/roff.c b/roff.c
index 518a8fd1..d0ddc4a3 100644
--- a/roff.c
+++ b/roff.c
@@ -2169,6 +2169,7 @@ roff_userdef(ROFF_ARGS)
buf->buf = n1;
if (buf->sz == 0)
buf->sz = strlen(buf->buf) + 1;
+ *offs = 0;
return(buf->sz > 1 && buf->buf[buf->sz - 2] == '\n' ?
ROFF_REPARSE : ROFF_APPEND);