From db1fd30da6def1269eae62b5ccd3c81c28ae000f Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 26 Jan 2011 11:27:25 -0800 Subject: 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 --- host/lib/utils/paths.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'host/lib/utils/paths.cpp') 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 get_env_paths(const std::string &var_name){ //convert to filesystem path, filter blank paths std::vector 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)); -- cgit v1.2.3