mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-04-02 07:51:19 +00:00
ftepp_out can return a nullptr
This commit is contained in:
parent
0d33939b1b
commit
498cbf6fa5
1 changed files with 4 additions and 1 deletions
5
main.c
5
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 {
|
||||
|
|
Loading…
Reference in a new issue