summaryrefslogtreecommitdiffstats
path: root/host/lib/utils/paths.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-26 11:34:27 -0800
committerJosh Blum <josh@joshknows.com>2011-01-26 11:34:27 -0800
commit2003cda6289c0b9f9d60cfb6d5fdc981f3f4fc9d (patch)
tree17637bc9418d607babdd98c555d2e130f457052a /host/lib/utils/paths.cpp
parent789cca28e8f920be56840b29e6e8cf0db1ba61aa (diff)
parentdb1fd30da6def1269eae62b5ccd3c81c28ae000f (diff)
downloaduhd-2003cda6289c0b9f9d60cfb6d5fdc981f3f4fc9d.tar.gz
uhd-2003cda6289c0b9f9d60cfb6d5fdc981f3f4fc9d.tar.bz2
uhd-2003cda6289c0b9f9d60cfb6d5fdc981f3f4fc9d.zip
Merge branch 'macos'
Diffstat (limited to 'host/lib/utils/paths.cpp')
-rw-r--r--host/lib/utils/paths.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/utils/paths.cpp b/host/lib/utils/paths.cpp
index 93d15d290..8d604d849 100644
--- a/host/lib/utils/paths.cpp
+++ b/host/lib/utils/paths.cpp
@@ -64,6 +64,7 @@ static std::vector<fs::path> get_env_paths(const std::string &var_name){
//convert to filesystem path, filter blank paths
std::vector<fs::path> paths;
+ if (var_value.empty()) return paths; //FIXME boost tokenizer throws w/ blank strings on some platforms
BOOST_FOREACH(const std::string &path_string, path_tokenizer(var_value)){
if (path_string.empty()) continue;
paths.push_back(fs::system_complete(path_string));