ftepp_out can return a nullptr

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-23 14:59:56 +01:00
parent 0d33939b1b
commit 498cbf6fa5

5
main.c
View file

@ -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 {