os: fix a C warning

pull/9608/head
Alexander Medvednikov 2021-04-05 06:42:20 +03:00
parent 7b7602a2f9
commit e399c07a2f
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ pub fn environ() map[string]string {
if isnil(derefed) {
break
}
eline := unsafe { cstring_to_vstring(derefed) }
eline := unsafe { cstring_to_vstring(&byte(derefed)) }
eq_index := eline.index_byte(`=`)
if eq_index > 0 {
res[eline[0..eq_index]] = eline[eq_index + 1..]