summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixInit.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/tclUnixInit.c')
-rw-r--r--unix/tclUnixInit.c2
1 files changed, 2 insertions, 0 deletions
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')) {