From 26230dd5055b74e390dd72aa2ca2d8a780fff802 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Wed, 26 Dec 2018 20:12:51 +0000 Subject: [PATCH] Correctly handle current directory '.' in include paths. --- re2c/src/conf/opt.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/re2c/src/conf/opt.cc b/re2c/src/conf/opt.cc index 73cdb37c..d99fb719 100644 --- a/re2c/src/conf/opt.cc +++ b/re2c/src/conf/opt.cc @@ -13,6 +13,7 @@ static void get_dir(std::string &path) if (c == '/' || c == '\\') break; } path.resize(i); + if (i == 0) path.push_back('.'); } void conopt_t::fix(const char *filename) -- 2.40.0