]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Don't ftepp_warn after destroying the lexer...
authorWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 23 Nov 2012 18:30:02 +0000 (19:30 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 23 Nov 2012 18:30:02 +0000 (19:30 +0100)
ftepp.c

diff --git a/ftepp.c b/ftepp.c
index 9e467338c8551c51c84bdb48392a35f2aa6d1081..679214f34003696af8c0e3cc637e557247c64f4a 100644 (file)
--- a/ftepp.c
+++ b/ftepp.c
@@ -1248,12 +1248,12 @@ static ftepp_t *ftepp;
 static bool ftepp_preprocess_done()
 {
     bool retval = true;
-    lex_close(ftepp->lex);
-    ftepp->lex = NULL;
     if (vec_size(ftepp->conditions)) {
         if (ftepp_warn(ftepp, WARN_MULTIFILE_IF, "#if spanning multiple files, is this intended?"))
             retval = false;
     }
+    lex_close(ftepp->lex);
+    ftepp->lex = NULL;
     if (ftepp->itemname) {
         mem_d(ftepp->itemname);
         ftepp->itemname = NULL;