aboutsummaryrefslogtreecommitdiffstats
path: root/parserInternals.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-09-05 11:33:25 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-09-05 11:33:25 +0000
commit3487c8d9bbf0c2d54effc1cd7566c2ececb18752 (patch)
tree1f5a032a6a8970c27cf0a3236088f56475cc3ba9 /parserInternals.c
parent19aa70245a694b3e8ae39da27a8c3deb8d32f405 (diff)
downloadandroid_external_libxml2-3487c8d9bbf0c2d54effc1cd7566c2ececb18752.tar.gz
android_external_libxml2-3487c8d9bbf0c2d54effc1cd7566c2ececb18752.tar.bz2
android_external_libxml2-3487c8d9bbf0c2d54effc1cd7566c2ececb18752.zip
get rid of all the perror() calls made in the library execution paths.
* DOCBparser.c HTMLparser.c c14n.c entities.c list.c parser.c parserInternals.c xmlIO.c: get rid of all the perror() calls made in the library execution paths. This should fix both #92059 and #92385 Daniel
Diffstat (limited to 'parserInternals.c')
-rw-r--r--parserInternals.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/parserInternals.c b/parserInternals.c
index 8d4e680f..ea217ad9 100644
--- a/parserInternals.c
+++ b/parserInternals.c
@@ -2351,7 +2351,7 @@ xmlNewParserCtxt()
if (ctxt == NULL) {
xmlGenericError(xmlGenericErrorContext,
"xmlNewParserCtxt : cannot allocate context\n");
- perror("malloc");
+ xmlGenericError(xmlGenericErrorContext, "malloc failed");
return(NULL);
}
memset(ctxt, 0, sizeof(xmlParserCtxt));
@@ -2767,7 +2767,8 @@ xmlDecodeEntities(xmlParserCtxtPtr ctxt ATTRIBUTE_UNUSED, int len ATTRIBUTE_UNUS
buffer_size = XML_PARSER_BIG_BUFFER_SIZE;
buffer = (xmlChar *) xmlMalloc(buffer_size * sizeof(xmlChar));
if (buffer == NULL) {
- perror("xmlDecodeEntities: malloc failed");
+ xmlGenericError(xmlGenericErrorContext,
+ "xmlDecodeEntities: malloc failed");
return(NULL);
}