From 645bd212d7095bed4e96c573fb68cd46d16843cb Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Fri, 30 Nov 2012 15:20:23 +0100 Subject: [PATCH] Don't try to compile an empty output from the preprocessor --- main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 9d9c5f3..1d84ae9 100644 --- a/main.c +++ b/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(); } -- 2.39.2