Skip to content

Commit

Permalink
posix::basic_cmd handles empty cmd
Browse files Browse the repository at this point in the history
closes #304.
  • Loading branch information
klemens-morgenstern committed Jun 14, 2023
1 parent 30be793 commit ad413de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/boost/process/detail/posix/basic_cmd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ struct exe_cmd_init<char> : boost::process::detail::api::handler_base_ext
{
if (exe.empty()) //cmd style
{
exec.exe = args.front().c_str();
if (args.empty())
exec.exe = "";
else
exec.exe = args.front().c_str();
exec.cmd_style = true;
}
else
Expand Down

0 comments on commit ad413de

Please sign in to comment.