aboutsummaryrefslogtreecommitdiff
path: root/tccpp.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccpp.c')
-rw-r--r--tccpp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tccpp.c b/tccpp.c
index 1803fe3..64c4919 100644
--- a/tccpp.c
+++ b/tccpp.c
@@ -1663,6 +1663,7 @@ ST_FUNC void preprocess(int is_bof)
/* search in all the include paths */
int j = i - 2, k = j - s1->nb_include_paths;
path = k < 0 ? s1->include_paths[j] : s1->sysinclude_paths[k];
+ if (path == 0) continue;
pstrcpy(buf1, sizeof(buf1), path);
pstrcat(buf1, sizeof(buf1), "/");
}