summaryrefslogtreecommitdiffstats
path: root/roff.c
diff options
context:
space:
mode:
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/roff.c b/roff.c
index 9c9bee1e..eded5d34 100644
--- a/roff.c
+++ b/roff.c
@@ -347,8 +347,12 @@ roff_free1(struct roff *r)
void
roff_reset(struct roff *r)
{
+ int i;
roff_free1(r);
+
+ for (i = 0; i < PREDEFS_MAX; i++)
+ roff_setstr(r, predefs[i].name, predefs[i].str, 0);
}