1
0
mirror of https://github.com/mirror/tinycc.git synced 2025-04-01 12:30:08 +08:00

TOK_INCLUDE: fix for the "normalize inc dirs"

A case for the absolute path: prevent an error after openening
This commit is contained in:
seyko 2015-11-06 02:50:36 +03:00
parent 7cb921a44b
commit 8fc9c79705

View File

@ -1639,7 +1639,7 @@ ST_FUNC void preprocess(int is_bof)
if (!IS_ABSPATH(buf))
continue;
buf1[0] = 0;
i = n; /* force end loop */
i = n - 1; /* force end loop */
} else if (i == -1) {
/* search in current dir if "header.h" */