X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=main.c;h=5134e9849f5312b7bf239ee1f8def258c1c10388;hb=e6a270a7e00abd3bcc1b587594e21ed75e341f43;hp=248f94f3af32074fd38a757d968dc2a297cd5b63;hpb=1deeb8c9cfeeadd6b8073b38e76257c3c16cdc72;p=xonotic%2Fgmqcc.git diff --git a/main.c b/main.c index 248f94f..5134e98 100644 --- 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; }