diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2025-08-18 11:49:57 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2025-08-18 11:49:57 (GMT) |
| commit | ac81afab4fc765d007215a6c20a8cce7e3e02cca (patch) | |
| tree | 19e3f110e5fcc235b992ad8c5f6130d381bb05b5 | |
| parent | 8796676d527ab66900f21ea345bcea15bec74f28 (diff) | |
| download | tcl-ac81afab4fc765d007215a6c20a8cce7e3e02cca.zip tcl-ac81afab4fc765d007215a6c20a8cce7e3e02cca.tar.gz tcl-ac81afab4fc765d007215a6c20a8cce7e3e02cca.tar.bz2 | |
Fixed inconsistent indenting, introduced [0433b67adc|here]. See also [87b69745be]
| -rw-r--r-- | generic/tclEncoding.c | 24 |
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; } } |
