]> granicus.if.org Git - re2c/commitdiff
Correctly handle current directory '.' in include paths.
authorUlya Trofimovich <skvadrik@gmail.com>
Wed, 26 Dec 2018 20:12:51 +0000 (20:12 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Wed, 26 Dec 2018 20:12:51 +0000 (20:12 +0000)
re2c/src/conf/opt.cc

index 73cdb37c702569c90b642763f9aab19544980dac..d99fb71973932ae85f741d9a8d8473dee7e212c3 100644 (file)
@@ -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)