summaryrefslogtreecommitdiffstats
path: root/win/tclWinChan.c
diff options
context:
space:
mode:
Diffstat (limited to 'win/tclWinChan.c')
-rw-r--r--win/tclWinChan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c
index d242f3d..46fbd4b 100644
--- a/win/tclWinChan.c
+++ b/win/tclWinChan.c
@@ -917,10 +917,6 @@ FileGetOptionProc(
*/
if ((len > 1) && (strncmp(optionName, "-stat", len) == 0)) {
- return TCL_OK;
- }
-
- if (valid) {
Tcl_Obj *dictObj = StatOpenFile(infoPtr);
const char *dictContents;
Tcl_Size dictLength;
@@ -943,6 +939,10 @@ FileGetOptionProc(
Tcl_DecrRefCount(dictObj);
return TCL_OK;
}
+
+ if (valid) {
+ return TCL_OK;
+ }
return Tcl_BadChannelOption(interp, optionName,
"stat");
}