TOK_INCLUDE: fix for the "normalize inc dirs"
A case for the absolute path: prevent an error after openening
This commit is contained in:
2
tccpp.c
2
tccpp.c
@ -1639,7 +1639,7 @@ ST_FUNC void preprocess(int is_bof)
|
|||||||
if (!IS_ABSPATH(buf))
|
if (!IS_ABSPATH(buf))
|
||||||
continue;
|
continue;
|
||||||
buf1[0] = 0;
|
buf1[0] = 0;
|
||||||
i = n; /* force end loop */
|
i = n - 1; /* force end loop */
|
||||||
|
|
||||||
} else if (i == -1) {
|
} else if (i == -1) {
|
||||||
/* search in current dir if "header.h" */
|
/* search in current dir if "header.h" */
|
||||||
|
|||||||
Reference in New Issue
Block a user