Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Commit

Permalink
__pthread_self: init locale
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfc committed Nov 8, 2022
1 parent 24ef5dd commit 5c99608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion z_pthread.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func __pthread_self() (self Pthread_t) {
if ret, ok := c2go_gtls.Load(id); ok {
self = ret.(*Struct___pthread)
} else {
self = &Struct___pthread{Tid: int32(id)}
self = &Struct___pthread{Tid: int32(id), Locale: &__libc.global_locale}
c2go_gtls.Store(id, self)
}
return
Expand Down

0 comments on commit 5c99608

Please sign in to comment.