]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
include: guard the actual inclusion with ftepp->output_on so that include inside...
authorWolfgang Bumiller <blub@speed.at>
Mon, 11 Feb 2013 11:13:27 +0000 (12:13 +0100)
committerWolfgang Bumiller <blub@speed.at>
Mon, 11 Feb 2013 11:13:27 +0000 (12:13 +0100)
ftepp.c

diff --git a/ftepp.c b/ftepp.c
index 27e3afe2ed17d4c72b94b697a48303724800d047..2ce9f4734fc7abd50357f5ad01bb59e040ab8988 100644 (file)
--- a/ftepp.c
+++ b/ftepp.c
@@ -1379,6 +1379,11 @@ static bool ftepp_include(ftepp_t *ftepp)
         return false;
     }
 
+    if (!ftepp->output_on) {
+        ftepp_next(ftepp);
+        return true;
+    }
+
     ctx = ftepp_ctx(ftepp);
 
     unescape(ftepp_tokval(ftepp), ftepp_tokval(ftepp));