Updated index_by call I missed

pull/13693/head
Tarcisio Gruppi 2022-03-09 00:05:35 -03:00
parent f1873908ea
commit cc4da51f89
No known key found for this signature in database
GPG Key ID: 36F5005FCAF5C057
1 changed files with 1 additions and 2 deletions

View File

@ -91,8 +91,7 @@ pub fn environ() map[string]string {
mut eline := ''
for c := estrings; *c != 0; {
eline = unsafe { string_from_wide(c) }
eq_index := eline.index_byte(`=`)
if eq_index > 0 {
if eq_index := eline.index_byte(`=`) {
res[eline[0..eq_index]] = eline[eq_index + 1..]
}
unsafe {