mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 00:56:14 +00:00
Shell: Correct FdRedirection inheriting from two RefCounted bases
Also add missing calls to `adopt()`.
This commit is contained in:
committed by
Andreas Kling
parent
12af65c1c9
commit
1d08cab9ab
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user