summaryrefslogtreecommitdiffstats
path: root/host/lib/utils/paths.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-26 11:27:25 -0800
committerJosh Blum <josh@joshknows.com>2011-01-26 11:27:25 -0800
commitdb1fd30da6def1269eae62b5ccd3c81c28ae000f (patch)
treebfb277c09bbf8f9675710316c927f552875eed36 /host/lib/utils/paths.cpp
parentbf25ec24adc6e4d1aa563962452630628dad3215 (diff)
downloaduhd-db1fd30da6def1269eae62b5ccd3c81c28ae000f.tar.gz
uhd-db1fd30da6def1269eae62b5ccd3c81c28ae000f.tar.bz2
uhd-db1fd30da6def1269eae62b5ccd3c81c28ae000f.zip
uhd: fixed maxosx bug, was resizing the transport buffer
but it cant be resized on macos and I messed up the code that blocked that behavior reimplemented block in usrp2_impl, seems more correct here
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));