summaryrefslogtreecommitdiff
path: root/xmlIO.c
diff options
context:
space:
mode:
Diffstat (limited to 'xmlIO.c')
-rw-r--r--xmlIO.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/xmlIO.c b/xmlIO.c
index 1251665..60e0a50 100644
--- a/xmlIO.c
+++ b/xmlIO.c
@@ -589,8 +589,11 @@ xmlCleanupOutputCallbacks(void)
int
xmlCheckFilename (const char *path)
{
+#ifdef HAVE_STAT
+ struct stat stat_buffer;
+#endif
if (path == NULL)
- return(0);
+ return(0);
#if defined(WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__)
{
@@ -616,8 +619,6 @@ xmlCheckFilename (const char *path)
}
#else
#ifdef HAVE_STAT
- struct stat stat_buffer;
-
if (stat(path, &stat_buffer) == -1)
return 0;