Skip to content

Backport !1698 “gslice: Inline win32 implementation of g_getenv() to avoid deadlock” to glib-2-66

The win32 implementation of g_getenv() uses GSlice (from within GQuark), which results in a deadlock when examining the G_SLICE environment variable.

Fix that by inlining a basic implementation of g_getenv() at that call site.

Signed-off-by: Philip Withnall pwithnall@endlessos.org

Fixes: #2225 (closed)


Trivial backport of !1698 (merged) to glib-2-66.

Merge request reports