From: Lukas Krickl Date: Sun, 10 Dec 2023 11:40:27 +0000 (+0100) Subject: Added #include directive X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=df761e26ec433f223199d288a60a6ac16b82ad09;p=ulas%2F.git Added #include directive --- diff --git a/src/ulas.c b/src/ulas.c index cc5253e..c4de707 100644 --- a/src/ulas.c +++ b/src/ulas.c @@ -1013,11 +1013,15 @@ found: FILE *tmp = tmpfile(); rc = ulas_preproc(tmp, f); + // only error if -1 + if (rc != -1) { + rc = found_dir; + } + free(ulas.filename); ulas.filename = prev_path; ulas.line = prev_lines; - free(ulas.filename); fclose(f); fclose(tmp); return rc; diff --git a/tests/t0.bin b/tests/t0.bin index 384eb12..8d24c37 100644 Binary files a/tests/t0.bin and b/tests/t0.bin differ