mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00
Shell: Correct FdRedirection inheriting from two RefCounted bases
Also add missing calls to `adopt()`.
This commit is contained in:
parent
12af65c1c9
commit
1d08cab9ab
5 changed files with 32 additions and 22 deletions
|
@ -187,7 +187,7 @@ int main(int argc, char** argv)
|
|||
Vector<String> args;
|
||||
for (auto* arg : script_args)
|
||||
args.empend(arg);
|
||||
shell->set_local_variable("ARGV", *new AST::ListValue(move(args)));
|
||||
shell->set_local_variable("ARGV", adopt(*new AST::ListValue(move(args))));
|
||||
}
|
||||
|
||||
if (command_to_run) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue