sh: Use try_move instead of try_set
Looks like Vector does not like being copied. I'll have to look into that later...
This commit is contained in:
parent
1210d2b7da
commit
8e8706be27
@ -94,7 +94,7 @@ int main()
|
||||
if (child == 0)
|
||||
{
|
||||
Vector<char*> argv;
|
||||
bool ok = split_command_into_argv(command).try_set_value_or_error(argv, errno);
|
||||
bool ok = split_command_into_argv(command).try_move_value_or_error(argv, errno);
|
||||
if (!ok)
|
||||
{
|
||||
perror("failed to parse command");
|
||||
|
Loading…
Reference in New Issue
Block a user