summaryrefslogtreecommitdiffstats
path: root/generic/tclIOUtil.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclIOUtil.c')
-rw-r--r--generic/tclIOUtil.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c
index df2d510..b892d65 100644
--- a/generic/tclIOUtil.c
+++ b/generic/tclIOUtil.c
@@ -1340,14 +1340,20 @@ TclFSNormalizeToUniquePath(
*/
path = Tcl_GetStringFromObj(pathPtr, &i);
- if ( (i >= 3) && ( (path[0] == '/' && path[1] == '/')
- || (path[0] == '\\' && path[1] == '\\') ) ) {
- for ( i = 2; ; i++) {
- if (path[i] == '\0') break;
- if (path[i] == path[0]) break;
+ if ((i >= 3) && ((path[0] == '/' && path[1] == '/')
+ || (path[0] == '\\' && path[1] == '\\'))) {
+ for (i = 2; ; i++) {
+ if (path[i] == '\0') {
+ break;
+ }
+ if (path[i] == path[0]) {
+ break;
+ }
}
--i;
- if (path[i] == ':') isVfsPath = 1;
+ if (path[i] == ':') {
+ isVfsPath = 1;
+ }
}
/*