Don't try to compile an empty output from the preprocessor

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-30 15:20:23 +01:00
parent f587e9cfb3
commit 645bd212d7

8
main.c
View file

@ -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();
}