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:
apio 2023-04-07 11:52:59 +02:00
parent 1210d2b7da
commit 8e8706be27
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -94,7 +94,7 @@ int main()
if (child == 0) if (child == 0)
{ {
Vector<char*> argv; 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) if (!ok)
{ {
perror("failed to parse command"); perror("failed to parse command");