summaryrefslogtreecommitdiffstats
path: root/generic/tclEncoding.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclEncoding.c')
-rw-r--r--generic/tclEncoding.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/generic/tclEncoding.c b/generic/tclEncoding.c
index d3914da..43566ce 100644
--- a/generic/tclEncoding.c
+++ b/generic/tclEncoding.c
@@ -988,21 +988,21 @@ Tcl_SetSystemEncoding(
Tcl_MutexLock(&encodingMutex);
if (name == NULL || name[0] == '\0') {
- if (defaultEncoding == systemEncoding) {
- Tcl_MutexUnlock(&encodingMutex);
- return TCL_OK;
- }
- encoding = defaultEncoding;
- ((Encoding *)encoding)->refCount += 1;
+ if (defaultEncoding == systemEncoding) {
+ Tcl_MutexUnlock(&encodingMutex);
+ return TCL_OK;
+ }
+ encoding = defaultEncoding;
+ ((Encoding *)encoding)->refCount += 1;
} else {
encoding = Tcl_GetEncoding(interp, name);
- if (encoding == systemEncoding) {
- FreeEncoding(encoding);
- Tcl_MutexUnlock(&encodingMutex);
- return TCL_OK;
- }
+ if (encoding == systemEncoding) {
+ FreeEncoding(encoding);
+ Tcl_MutexUnlock(&encodingMutex);
+ return TCL_OK;
+ }
if (encoding == NULL) {
- Tcl_MutexUnlock(&encodingMutex);
+ Tcl_MutexUnlock(&encodingMutex);
return TCL_ERROR;
}
}