From 2707349d7038d41475d2c05474888e9c221d28d3 Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" <pesco@khjk.org> Date: Mon, 25 Nov 2019 00:50:54 +0100 Subject: [PATCH] no need to check for NULL with the new h_pprint --- pdf.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pdf.c b/pdf.c index b095f35..3db39cc 100644 --- a/pdf.c +++ b/pdf.c @@ -466,10 +466,7 @@ int main(int argc, char *argv[]) } /* print result */ - if (!res->ast) - printf("null\n"); - else - h_pprint(stdout, res->ast, 0, 2); + h_pprint(stdout, res->ast, 0, 2); return 0; } -- GitLab