summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2018-01-23 18:23:37 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2019-02-12 12:29:32 +0100
commit11707a80c2af681832689e6a6d1b66674d6c2ccb (patch)
treebd1f95a3015224369da8e0b66af46fcec14deb0f
parentf1eb717f04d9cc297cc5e58e94b81ac96f47e741 (diff)
downloadlibxslt-11707a80c2af681832689e6a6d1b66674d6c2ccb.tar.gz
Fix misleading indentation in security.c
-rw-r--r--libxslt/security.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/libxslt/security.c b/libxslt/security.c
index 9c848cc4..550dc4e2 100644
--- a/libxslt/security.c
+++ b/libxslt/security.c
@@ -385,16 +385,18 @@ xsltCheckWrite(xsltSecurityPrefsPtr sec,
(xmlStrEqual(BAD_CAST uri->scheme, BAD_CAST "file"))) {
#if defined(_WIN32) && !defined(__CYGWIN__)
- if ((uri->path)&&(uri->path[0]=='/')&&
- (uri->path[1]!='\0')&&(uri->path[2]==':'))
- ret = xsltCheckWritePath(sec, ctxt, uri->path+1);
- else
+ if ((uri->path)&&(uri->path[0]=='/')&&
+ (uri->path[1]!='\0')&&(uri->path[2]==':'))
+ ret = xsltCheckWritePath(sec, ctxt, uri->path+1);
+ else
#endif
+ {
+ /*
+ * Check if we are allowed to write this file
+ */
+ ret = xsltCheckWritePath(sec, ctxt, uri->path);
+ }
- /*
- * Check if we are allowed to write this file
- */
- ret = xsltCheckWritePath(sec, ctxt, uri->path);
if (ret <= 0) {
xmlFreeURI(uri);
return(ret);