aboutsummaryrefslogtreecommitdiffstats
path: root/SAX2.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2010-03-15 16:08:44 +0100
committerDaniel Veillard <veillard@redhat.com>2010-03-15 16:08:44 +0100
commit06c93b75095ddca6ba80e45dd381bb69cd04b9f6 (patch)
tree9389ffb136c4dd894f95188d3a63f9c1f0f31d52 /SAX2.c
parent26b06874353941ea9eb5540b293b28a97d2b5cb0 (diff)
downloadandroid_external_libxml2-06c93b75095ddca6ba80e45dd381bb69cd04b9f6.tar.gz
android_external_libxml2-06c93b75095ddca6ba80e45dd381bb69cd04b9f6.tar.bz2
android_external_libxml2-06c93b75095ddca6ba80e45dd381bb69cd04b9f6.zip
Remove a few warnings
Diffstat (limited to 'SAX2.c')
-rw-r--r--SAX2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/SAX2.c b/SAX2.c
index 04c0e304..84c1f004 100644
--- a/SAX2.c
+++ b/SAX2.c
@@ -1108,7 +1108,8 @@ xmlSAX2AttributeInternal(void *ctx, const xmlChar *fullname,
#ifdef LIBXML_HTML_ENABLED
if ((ctxt->html) &&
(value == NULL) && (htmlIsBooleanAttr(fullname))) {
- nval = value = xmlStrdup(fullname);
+ nval = xmlStrdup(fullname);
+ value = (const xmlChar *) nval;
} else
#endif
{