File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -95,9 +95,9 @@ struct C._utimbuf {
95
95
fn C._utime (& char, voidptr ) int
96
96
97
97
fn init_os_args_wide (argc int , argv && byte ) []string {
98
- mut args_ := []string {}
98
+ mut args_ := []string {len: argc }
99
99
for i in 0 .. argc {
100
- args_ << unsafe { string_from_wide (& u16 (argv[i])) }
100
+ args_[i] = unsafe { string_from_wide (& u16 (argv[i])) }
101
101
}
102
102
return args_
103
103
}
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ const skip_valgrind_files = [
29
29
'vlib/v/tests/valgrind/fn_with_return_should_free_local_vars.v' ,
30
30
'vlib/v/tests/valgrind/option_simple.v' ,
31
31
'vlib/v/tests/valgrind/string_plus_string_plus.v' ,
32
- 'vlib/v/tests/valgrind/import_os_and_use_its_constants.v' ,
33
32
]
34
33
35
34
fn vprintln (s string ) {
You can’t perform that action at this time.
0 commit comments