summaryrefslogtreecommitdiffstats
path: root/generic/tclIORChan.c
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@noemail.net>2009-11-21 21:58:29 (GMT)
committerpatthoyts <patthoyts@noemail.net>2009-11-21 21:58:29 (GMT)
commit2908fd04ecc6a9e75956a3c71172a75338e7cf31 (patch)
treec7c2f708da746a4737997e70c104ed4e4afdb0c2 /generic/tclIORChan.c
parenteae241d31d6ab6fafd9e8c0049e66ae2bb325df4 (diff)
downloadtcl-2908fd04ecc6a9e75956a3c71172a75338e7cf31.zip
tcl-2908fd04ecc6a9e75956a3c71172a75338e7cf31.tar.gz
tcl-2908fd04ecc6a9e75956a3c71172a75338e7cf31.tar.bz2
Cast required when setting result using a const string. String is copied by TCL_VOLATILE.
FossilOrigin-Name: a74abc57cea98cfca76344fbc8fa5e208419b2e9
Diffstat (limited to 'generic/tclIORChan.c')
-rw-r--r--generic/tclIORChan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIORChan.c b/generic/tclIORChan.c
index f2f8e1d..e3ba688 100644
--- a/generic/tclIORChan.c
+++ b/generic/tclIORChan.c
@@ -15,7 +15,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIORChan.c,v 1.42 2009/11/18 22:41:41 nijtmans Exp $
+ * RCS: @(#) $Id: tclIORChan.c,v 1.43 2009/11/21 21:58:30 patthoyts Exp $
*/
#include <tclInt.h>
@@ -735,7 +735,7 @@ TclChanCreateObjCmd(
* Return handle as result of command.
*/
- Tcl_SetResult(interp, chanPtr->state->channelName, TCL_VOLATILE);
+ Tcl_SetResult(interp, (char *)chanPtr->state->channelName, TCL_VOLATILE);
return TCL_OK;
error: