mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
check for NULL to prevent crash with meta elements
* xmlsave.c: check for NULL to prevent crash with meta elements
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
Sat Sep 3 16:51:55 CEST 2005 Rob Richards <rrichards@ctindustries.net>
|
||||||
|
|
||||||
|
* xmlsave.c: check for NULL to prevent crash with meta elements
|
||||||
|
|
||||||
Sat Sep 3 16:26:55 CEST 2005 Daniel Veillard <daniel@veillard.com>
|
Sat Sep 3 16:26:55 CEST 2005 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* relaxng.c: structured error reporting problem with Relax-NG
|
* relaxng.c: structured error reporting problem with Relax-NG
|
||||||
|
@@ -1216,12 +1216,14 @@ xhtmlNodeDumpOutput(xmlSaveCtxtPtr ctxt, xmlNodePtr cur) {
|
|||||||
xmlChar *httpequiv;
|
xmlChar *httpequiv;
|
||||||
|
|
||||||
httpequiv = xmlGetProp(tmp, BAD_CAST"http-equiv");
|
httpequiv = xmlGetProp(tmp, BAD_CAST"http-equiv");
|
||||||
|
if (httpequiv != NULL) {
|
||||||
if (xmlStrcasecmp(httpequiv, BAD_CAST"Content-Type") == 0) {
|
if (xmlStrcasecmp(httpequiv, BAD_CAST"Content-Type") == 0) {
|
||||||
xmlFree(httpequiv);
|
xmlFree(httpequiv);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
xmlFree(httpequiv);
|
xmlFree(httpequiv);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
tmp = tmp->next;
|
tmp = tmp->next;
|
||||||
}
|
}
|
||||||
if (tmp == NULL)
|
if (tmp == NULL)
|
||||||
|
Reference in New Issue
Block a user