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

vlib: fix mutable args

This commit is contained in:
joe-conigliaro
2019-08-07 17:53:33 +10:00
committed by Alexander Medvednikov
parent 34e0b164eb
commit 0bcc53c366
13 changed files with 54 additions and 54 deletions

View File

@ -824,14 +824,15 @@ fn parse_query_silent(query string) Values {
fn _parse_query(m mut Values, query string) ?bool {
mut had_error := false
for query != '' {
mut key := query
mut q := query
for q != '' {
mut key := q
mut i := key.index_any('&;')
if i >= 0 {
query = key.right(i+1)
q = key.right(i+1)
key = key.left(i)
} else {
query = ''
q = ''
}
if key == '' {
continue