summaryrefslogtreecommitdiffstats
path: root/term_ps.c
diff options
context:
space:
mode:
Diffstat (limited to 'term_ps.c')
-rw-r--r--term_ps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/term_ps.c b/term_ps.c
index 8047407d..91402ff4 100644
--- a/term_ps.c
+++ b/term_ps.c
@@ -434,7 +434,8 @@ pspdf_alloc(char *outopts)
const char *pp;
char *v;
- p = term_alloc(TERMENC_ASCII);
+ p = mandoc_calloc(1, sizeof(struct termp));
+ p->enc = TERMENC_ASCII;
p->ps = mandoc_calloc(1, sizeof(struct termp_ps));
p->advance = ps_advance;