From 498cbf6fa5318b83b764dbc3a274b5aaec6ff0ef Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Fri, 23 Nov 2012 14:59:56 +0100 Subject: [PATCH] ftepp_out can return a nullptr --- main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 76e4007..a73f3f1 100644 --- a/main.c +++ b/main.c @@ -567,11 +567,14 @@ srcdone: } if (opts_pp_only) { + const char *out; if (!ftepp_preprocess_file(items[itr].filename)) { retval = 1; goto cleanup; } - fprintf(outfile, "%s", ftepp_get()); + out = ftepp_get(); + if (out) + fprintf(outfile, "%s", out); ftepp_flush(); } else { -- 2.39.2