summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-12 10:30:14 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-12 10:30:14 (GMT)
commit167c883c087ff89c46268d3b3a0067a8095704a5 (patch)
treed2c34f84614d25559afe802e89d03113abb2ca43 /generic/tclIO.c
parenta6f978e38d8c7689dc1e15973c12df2d9f14756d (diff)
parent52549ae747613994a8ced4de9b567bc4cc09443f (diff)
downloadtcl-167c883c087ff89c46268d3b3a0067a8095704a5.zip
tcl-167c883c087ff89c46268d3b3a0067a8095704a5.tar.gz
tcl-167c883c087ff89c46268d3b3a0067a8095704a5.tar.bz2
Merge 8.6. Better solution for [e87000d842]
Diffstat (limited to 'generic/tclIO.c')
-rw-r--r--generic/tclIO.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c
index f0d4c9e..7af6aa0 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.c
@@ -7711,7 +7711,7 @@ Tcl_BadChannelOption(
}
Tcl_ResetResult(interp);
errObj = Tcl_ObjPrintf("bad option \"%s\": should be one of ",
- optionName);
+ optionName ? optionName : "");
argc--;
for (i = 0; i < argc; i++) {
Tcl_AppendPrintfToObj(errObj, "-%s, ", argv[i]);