summaryrefslogtreecommitdiff
path: root/entities.c
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2003-09-26 18:03:42 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2003-09-26 18:03:42 +0000
commit899e64aa2fa3b7796cff6901ef9aafe84215f8b2 (patch)
tree273df5696c93be1d04eec52c2fc229025dcd6c62 /entities.c
parent11476b4eacfd6283921fdb7878a4b9f1571ed68d (diff)
downloadlibxml2-899e64aa2fa3b7796cff6901ef9aafe84215f8b2.tar.gz
minor change to avoid compilation warnings on some (e.g. AIX) systems
* HTMLparser.c, entities.c, xmlreader.c: minor change to avoid compilation warnings on some (e.g. AIX) systems
Diffstat (limited to 'entities.c')
-rw-r--r--entities.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/entities.c b/entities.c
index 67317f3c..f7693bbb 100644
--- a/entities.c
+++ b/entities.c
@@ -771,11 +771,13 @@ xmlEncodeSpecialChars(xmlDocPtr doc, const xmlChar *input) {
xmlChar *buffer = NULL;
xmlChar *out = NULL;
int buffer_size = 0;
+#if 0
int html = 0;
- if (input == NULL) return(NULL);
if (doc != NULL)
html = (doc->type == XML_HTML_DOCUMENT_NODE);
+#endif
+ if (input == NULL) return(NULL);
/*
* allocate an translation buffer.