Skip to content

Commit f922e59

Browse files
authored
fix: use correct command variable (#769)
1 parent 753428f commit f922e59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/engine/process/process_posix.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class Process : public IProcess {
9393

9494
current_line_.reserve(300);
9595

96-
argv_split parser(command);
96+
argv_split parser(command_);
9797
parser.parse(args);
9898

9999
char *const *execv_argv = (char *const *)parser.argv();
@@ -113,7 +113,7 @@ class Process : public IProcess {
113113

114114
setup_wd_file_actions(file_actions, wd_);
115115

116-
if (posix_spawn(&process_pid_, command.c_str(), &file_actions, nullptr, execv_argv, environ) != 0) {
116+
if (posix_spawn(&process_pid_, command_.c_str(), &file_actions, nullptr, execv_argv, environ) != 0) {
117117
throw std::runtime_error("posix_spawn failed");
118118
}
119119

0 commit comments

Comments
 (0)