From 937f3434c1300404d5643a2943e5dfba734d4022 Mon Sep 17 00:00:00 2001 From: apnadkarni Date: Tue, 23 Sep 2025 11:42:28 +0000 Subject: Fix for fix. If getenv returns NULL, Tcl_DString buffer still needs initialization --- unix/tclUnixInit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unix/tclUnixInit.c b/unix/tclUnixInit.c index 8c16d74..6460c90 100644 --- a/unix/tclUnixInit.c +++ b/unix/tclUnixInit.c @@ -482,6 +482,8 @@ TclpInitLibraryPath( if (str != NULL) { Tcl_ExternalToUtfDString(NULL, str, -1, &buffer); str = Tcl_DStringValue(&buffer); + } else { + Tcl_DStringInit(&buffer); } if ((str != NULL) && (str[0] != '\0')) { -- cgit v0.12