1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-25 23:21:26 +03:00

applied change from Michael Day to avoid a problem when compiled without

* xmlIO.c: applied change from Michael Day to avoid a problem when
  compiled without zlib support.
Daniel

svn path=/trunk/; revision=3596
This commit is contained in:
Daniel Veillard 2007-03-30 12:39:25 +00:00
parent 7ef5169074
commit bd672bc5f9
2 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,8 @@
Fri Mar 30 14:41:57 CEST 2007 Daniel Veillard <daniel@veillard.com>
* xmlIO.c: applied change from Michael Day to avoid a problem when
compiled without zlib support.
Wed Mar 21 17:58:13 CET 2007 Daniel Veillard <daniel@veillard.com>
* include/libxml/xpath.h: applied documentation patch from James Dennett

14
xmlIO.c
View File

@ -883,13 +883,15 @@ xmlFileOpen (const char *filename) {
char *unescaped;
void *retval;
unescaped = xmlURIUnescapeString(filename, 0, NULL);
if (unescaped != NULL) {
retval = xmlFileOpen_real(unescaped);
xmlFree(unescaped);
} else {
retval = xmlFileOpen_real(filename);
retval = xmlFileOpen_real(filename);
if (retval == NULL) {
unescaped = xmlURIUnescapeString(filename, 0, NULL);
if (unescaped != NULL) {
retval = xmlFileOpen_real(unescaped);
xmlFree(unescaped);
}
}
return retval;
}