diff options
author | dkf <dkf@noemail.net> | 2012-08-03 10:56:28 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2012-08-03 10:56:28 (GMT) |
commit | 6e86ccf7fe809f84e5672157ea4989aabdde3d7d (patch) | |
tree | 75be1366adc438a7d2ef0f75fc7c2ffe414d7872 /generic/tclIOUtil.c | |
parent | fcdd3afc5ee7b8e46352738cb0262168fa9bb6c7 (diff) | |
download | tcl-6e86ccf7fe809f84e5672157ea4989aabdde3d7d.zip tcl-6e86ccf7fe809f84e5672157ea4989aabdde3d7d.tar.gz tcl-6e86ccf7fe809f84e5672157ea4989aabdde3d7d.tar.bz2 |
converting to using Tcl_Obj API for error message generation; part done
FossilOrigin-Name: 7fb86a29c9bfa1140ea3a8af6f65221ce4474e45
Diffstat (limited to 'generic/tclIOUtil.c')
-rw-r--r-- | generic/tclIOUtil.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c index 41a5aac..ebf34dc 100644 --- a/generic/tclIOUtil.c +++ b/generic/tclIOUtil.c @@ -1094,8 +1094,9 @@ Tcl_FSMatchInDirectory( cwd = Tcl_FSGetCwd(NULL); if (cwd == NULL) { if (interp != NULL) { - Tcl_SetResult(interp, "glob couldn't determine " - "the current working directory", TCL_STATIC); + Tcl_SetObjResult(interp, Tcl_NewStringObj( + "glob couldn't determine the current working directory", + -1)); } return TCL_ERROR; } |