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:
@@ -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
|
||||
/*
|
||||
|
Reference in New Issue
Block a user