diff --git a/src/bin/fish.rs b/src/bin/fish.rs index aee360043..59cc6fe31 100644 --- a/src/bin/fish.rs +++ b/src/bin/fish.rs @@ -457,10 +457,6 @@ fn main() { } fn throwing_main() -> i32 { - let mut args: Vec = env::args_os() - .map(|osstr| str2wcstring(osstr.as_bytes())) - .collect(); - let mut res = 1; signal_unblock_all(); @@ -474,6 +470,9 @@ fn throwing_main() -> i32 { } } + let mut args: Vec = env::args_os() + .map(|osstr| str2wcstring(osstr.as_bytes())) + .collect(); if args.is_empty() { args.push("fish".into()); }