aboutsummaryrefslogtreecommitdiffstats
path: root/HTMLtree.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-11-02 14:52:23 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-11-02 14:52:23 +0000
commit36e5cd5064d3477a0500f6183d68b18b7493568a (patch)
tree95d13002a3bca1191e1328de0739dacbb15835ee /HTMLtree.c
parent032268145fad72bbf00c944c1f6a067e5da4a1e0 (diff)
downloadandroid_external_libxml2-36e5cd5064d3477a0500f6183d68b18b7493568a.tar.gz
android_external_libxml2-36e5cd5064d3477a0500f6183d68b18b7493568a.tar.bz2
android_external_libxml2-36e5cd5064d3477a0500f6183d68b18b7493568a.zip
adding xmlMemBlocks() work on generator of an automatic API regression
* xmlmemory.c include/libxml/xmlmemory.h: adding xmlMemBlocks() * Makefile.am gentest.py testapi.c: work on generator of an automatic API regression test tool. * SAX2.c nanoftp.c parser.c parserInternals.c tree.c xmlIO.c xmlstring.c: various API hardeing changes as a result of running teh first set of automatic API regression tests. * test/slashdot16.xml: apparently missing from CVS, commited it Daniel
Diffstat (limited to 'HTMLtree.c')
-rw-r--r--HTMLtree.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/HTMLtree.c b/HTMLtree.c
index 9a5d35fe..dc0b0f5e 100644
--- a/HTMLtree.c
+++ b/HTMLtree.c
@@ -1053,6 +1053,9 @@ htmlSaveFile(const char *filename, xmlDocPtr cur) {
const char *encoding;
int ret;
+ if ((cur == NULL) || (filename == NULL))
+ return(-1);
+
xmlInitParser();
encoding = (const char *) htmlGetMetaEncoding(cur);
@@ -1113,6 +1116,9 @@ htmlSaveFileFormat(const char *filename, xmlDocPtr cur,
xmlCharEncodingHandlerPtr handler = NULL;
int ret;
+ if ((cur == NULL) || (filename == NULL))
+ return(-1);
+
xmlInitParser();
if (encoding != NULL) {