summaryrefslogtreecommitdiff
path: root/xsltproc/xsltproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'xsltproc/xsltproc.c')
-rw-r--r--xsltproc/xsltproc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c
index a7287181..e15fbb4a 100644
--- a/xsltproc/xsltproc.c
+++ b/xsltproc/xsltproc.c
@@ -547,8 +547,10 @@ main(int argc, char **argv)
(!strcmp(argv[i], "-output")) ||
(!strcmp(argv[i], "--output"))) {
i++;
+#if defined(WIN32) || defined (__CYGWIN__)
output = xmlCanonicPath(argv[i]);
if (output == NULL)
+#endif
output = xmlStrdup(argv[i]);
} else if ((!strcmp(argv[i], "-V")) ||
(!strcmp(argv[i], "-version")) ||