1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-20 03:52:25 +03:00

fixing compilation bug with some options disabled as well as

* debugXML.c testHTML.c tree.c doc/examples/*.c
  include/libxml/xmlsave.h: fixing compilation bug with some options
  disabled as well as --with-minimum should fix #134695
Daniel
This commit is contained in:
Daniel Veillard
2004-03-04 15:59:36 +00:00
parent cccd4a0524
commit 2156d4387b
13 changed files with 178 additions and 76 deletions

View File

@@ -704,7 +704,7 @@ parseSAXFile(char *filename) {
static void
parseAndPrintFile(char *filename) {
htmlDocPtr doc = NULL, tmp;
htmlDocPtr doc = NULL;
/*
* build an HTML tree from a string;
@@ -745,14 +745,18 @@ parseAndPrintFile(char *filename) {
"Could not parse %s\n", filename);
}
#ifdef LIBXML_TREE_ENABLED
/*
* test intermediate copy if needed.
*/
if (copy) {
htmlDocPtr tmp;
tmp = doc;
doc = xmlCopyDoc(doc, 1);
xmlFreeDoc(tmp);
}
#endif
#ifdef LIBXML_OUTPUT_ENABLED
/*