summaryrefslogtreecommitdiff
path: root/xmlIO.c
diff options
context:
space:
mode:
Diffstat (limited to 'xmlIO.c')
-rw-r--r--xmlIO.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmlIO.c b/xmlIO.c
index 13a57e7..198fb15 100644
--- a/xmlIO.c
+++ b/xmlIO.c
@@ -2217,7 +2217,9 @@ __xmlOutputBufferCreateFilename(const char *URI,
int i = 0;
void *context = NULL;
char *unescaped = NULL;
+#ifdef HAVE_ZLIB_H
int is_file_uri = 1;
+#endif
if (xmlOutputCallbackInitialized == 0)
xmlRegisterDefaultOutputCallbacks();
@@ -2228,7 +2230,9 @@ __xmlOutputBufferCreateFilename(const char *URI,
if (puri != NULL) {
if ((puri->scheme != NULL) &&
(!xmlStrEqual(BAD_CAST puri->scheme, BAD_CAST "file")))
+#ifdef HAVE_ZLIB_H
is_file_uri = 0;
+#endif
/*
* try to limit the damages of the URI unescaping code.
*/