X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Fboost%2Fprocess%2Fdetail%2Fposix%2Fexecutor.hpp;fp=ceph%2Fsrc%2Fboost%2Fboost%2Fprocess%2Fdetail%2Fposix%2Fexecutor.hpp;h=5293c9ca59790a3617cb851d6a61a2bebb28f7a1;hb=20effc670b57271cb089376d6d0800990e5218d5;hp=c031689b98c70de5feb321ba07156c07999b6474;hpb=a71831dadd1e1f3e0fa70405511f65cc33db0498;p=ceph.git diff --git a/ceph/src/boost/boost/process/detail/posix/executor.hpp b/ceph/src/boost/boost/process/detail/posix/executor.hpp index c031689b9..5293c9ca5 100644 --- a/ceph/src/boost/boost/process/detail/posix/executor.hpp +++ b/ceph/src/boost/boost/process/detail/posix/executor.hpp @@ -274,10 +274,10 @@ class executor if ((prepare_cmd_style_fn.find('/') == std::string::npos) && ::access(prepare_cmd_style_fn.c_str(), X_OK)) { auto e = ::environ; - while ((*e != nullptr) && !boost::starts_with(*e, "PATH=")) + while ((e != nullptr) && (*e != nullptr) && !boost::starts_with(*e, "PATH=")) e++; - if (e != nullptr) + if ((e != nullptr) && (*e != nullptr)) { std::vector path; boost::split(path, *e, boost::is_any_of(":"));