summaryrefslogtreecommitdiffstats
path: root/host/lib/utils/paths.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-31 18:05:16 -0800
committerJosh Blum <josh@joshknows.com>2011-01-31 18:05:16 -0800
commit52e9c8f8027d0bbe1e6b0f57e30f985613e48be2 (patch)
tree44bb54695dfc8a0ba552085a1f9625d7d85d37ab /host/lib/utils/paths.cpp
parent572a64f0acb459583abfccbc8288158822fa2f77 (diff)
parent67bba008255f98367cf19dba518dceb40f763c25 (diff)
downloaduhd-52e9c8f8027d0bbe1e6b0f57e30f985613e48be2.tar.gz
uhd-52e9c8f8027d0bbe1e6b0f57e30f985613e48be2.tar.bz2
uhd-52e9c8f8027d0bbe1e6b0f57e30f985613e48be2.zip
Merge branch 'multi_usrp_only' into usrp_e100_devel
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));