diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-02-12 23:45:20 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-02-12 23:45:20 +0000 |
commit | 16e77b5cf48b641875698f9a4eece6d95857424d (patch) | |
tree | 02dcd6fb4adfc86a2707fe70739a35e7bd42a767 /gcc/cccp.c | |
parent | b584bf3a0c918398abfafde034ab1ce30e667519 (diff) | |
download | gcc-16e77b5cf48b641875698f9a4eece6d95857424d.tar.gz |
* cccp.c (new_include_prefix): Correctly handle -I./.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17886 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cccp.c')
-rw-r--r-- | gcc/cccp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c index c394ea2ecc2..f8877be99df 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -9814,7 +9814,7 @@ new_include_prefix (prev_file_name, component, prefix, name) len = simplify_filename (dir->fname); /* Convert directory name to a prefix. */ - if (dir->fname[len - 1] != DIR_SEPARATOR) { + if (len && dir->fname[len - 1] != DIR_SEPARATOR) { if (len == 1 && dir->fname[len - 1] == '.') len = 0; else |