projects
/
ulas
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23d4006
)
Added #include directive
author
Lukas Krickl
<lukas@krickl.dev>
Sun, 10 Dec 2023 11:40:27 +0000
(12:40 +0100)
committer
Lukas Krickl
<lukas@krickl.dev>
Sun, 10 Dec 2023 11:40:27 +0000
(12:40 +0100)
src/ulas.c
patch
|
blob
|
history
tests/t0.bin
patch
|
blob
|
history
diff --git
a/src/ulas.c
b/src/ulas.c
index cc5253efdc4c2387deceee1a047f50a7f80c7557..c4de70799de49ff69602ab825fb19e0729948967 100644
(file)
--- 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 384eb120297436f96d5a63451160bc7374e7dfe3..8d24c3726fba761c4b0b836796d5613cf9041523 100644
(file)
Binary files a/tests/t0.bin and b/tests/t0.bin differ