mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-24 11:32:16 +00:00
Don't try to compile an empty output from the preprocessor
This commit is contained in:
parent
f587e9cfb3
commit
645bd212d7
1 changed files with 5 additions and 3 deletions
8
main.c
8
main.c
|
@ -655,9 +655,11 @@ srcdone:
|
|||
goto cleanup;
|
||||
}
|
||||
data = ftepp_get();
|
||||
if (!parser_compile_string_len(items[itr].filename, data, vec_size(data)-1)) {
|
||||
retval = 1;
|
||||
goto cleanup;
|
||||
if (vec_size(data)) {
|
||||
if (!parser_compile_string_len(items[itr].filename, data, vec_size(data))) {
|
||||
retval = 1;
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
ftepp_flush();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue