parser: Fix the expanded list inclusion

This commit is contained in:
Felipe Zimmerle
2016-11-16 15:46:09 -03:00
parent c98be42f8f
commit ab88083159
4 changed files with 12 additions and 9 deletions

View File

@@ -106,8 +106,8 @@ std::string get_path(const std::string& file) {
}
std::vector<std::string> expandEnv(const std::string& var, int flags) {
std::vector<std::string> vars;
std::list<std::string> expandEnv(const std::string& var, int flags) {
std::list<std::string> vars;
wordexp_t p;
if (wordexp(var.c_str(), &p, flags) == false) {