mirror of
https://gitee.com/johng/gf.git
synced 2024-11-30 03:07:45 +08:00
fix gctx init slice bounds out of range on ios platform (#2062)
This commit is contained in:
parent
e4c8cfc16b
commit
897d6d9ad0
@ -33,6 +33,9 @@ func init() {
|
||||
i := 0
|
||||
for _, s := range os.Environ() {
|
||||
i = strings.IndexByte(s, '=')
|
||||
if i == -1 {
|
||||
continue
|
||||
}
|
||||
m[s[0:i]] = s[i+1:]
|
||||
}
|
||||
// OpenTelemetry from environments.
|
||||
|
Loading…
Reference in New Issue
Block a user