1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: check unsafe array assign (fix #9651) (#15515)

This commit is contained in:
yuyi
2022-08-25 13:52:13 +08:00
committed by GitHub
parent 86496aa191
commit c662431cfd
24 changed files with 84 additions and 48 deletions

View File

@ -321,7 +321,7 @@ fn take_screenshots(opt Options, app AppConfig) ![]string {
os.setenv('$k', rv, true)
}
mut flags := app.capture.flags.join(' ')
flags := app.capture.flags.join(' ')
result := opt.verbose_execute('${os.quoted_path(v_exe)} $flags -d gg_record run ${os.quoted_path(app.abs_path)}')
if result.exit_code != 0 {
return error('Failed taking screenshot of `$app.abs_path`:\n$result.output')
@ -336,7 +336,7 @@ fn take_screenshots(opt Options, app AppConfig) ![]string {
existing_screenshots := get_app_screenshots(out_path, app)!
mut flags := app.capture.flags
flags := app.capture.flags
mut p_app := os.new_process(app.abs_path)
p_app.set_args(flags)