]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - main.c
Some parsing
[xonotic/gmqcc.git] / main.c
diff --git a/main.c b/main.c
index 248f94f3af32074fd38a757d968dc2a297cd5b63..5134e9849f5312b7bf239ee1f8def258c1c10388 100644 (file)
--- a/main.c
+++ b/main.c
@@ -61,12 +61,11 @@ int main(int argc, char **argv) {
        if  (!fp) {
                fclose(fp);
                return error(ERROR_COMPILER, "Source file: %s not found\n", ifile);
+       } else {
+               struct lex_file *lex = lex_open(fp);
+               lex_debug(lex);
+               parse    (lex);
+               lex_close(lex);
        }
-       
-       struct lex_file *lex = lex_open(fp);
-       lex_debug(lex);
-       parse    (lex);
-       lex_close(lex);
-       
        return 0;
 }