From: Ulya Trofimovich Date: Wed, 26 Dec 2018 20:12:51 +0000 (+0000) Subject: Correctly handle current directory '.' in include paths. X-Git-Tag: 1.2~281 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26230dd5055b74e390dd72aa2ca2d8a780fff802;p=re2c Correctly handle current directory '.' in include paths. --- 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)