]> git.cameronkatri.com Git - mandoc.git/blobdiff - term_ps.c
Fix a regression caused by mdoc_term.c 1.214 / mdoc_html.c 1.148:
[mandoc.git] / term_ps.c
index fa2f68fe26d3dd759da56ff1a6b5a7767136770a..543b111c2ba66017436efca3737656016c615541 100644 (file)
--- a/term_ps.c
+++ b/term_ps.c
@@ -1,4 +1,4 @@
-/*     $Id: term_ps.c,v 1.45 2010/09/27 23:03:44 schwarze Exp $ */
+/*     $Id: term_ps.c,v 1.46 2011/01/25 17:32:04 kristaps Exp $ */
 /*
  * Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
  *
@@ -428,8 +428,7 @@ pspdf_alloc(char *outopts)
        const char      *pp;
        char            *v;
 
-       if (NULL == (p = term_alloc(TERMENC_ASCII)))
-               return(NULL);
+       p = term_alloc(TERMENC_ASCII);
 
        p->advance = ps_advance;
        p->begin = ps_begin;