diff options
author | Gaurav <g.gupta@samsung.com> | 2014-06-13 14:45:20 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2014-06-13 14:45:20 +0800 |
commit | 3e0eec43196e9c4d770b9a932ad131316794f7b4 (patch) | |
tree | 8a95c257ba6a2ac1256f3a3fd6c49868ac729fc7 /HTMLparser.c | |
parent | c35af8b18dddd0bdfb137ad6a056837a3d5ea651 (diff) | |
download | android_external_libxml2-3e0eec43196e9c4d770b9a932ad131316794f7b4.tar.gz android_external_libxml2-3e0eec43196e9c4d770b9a932ad131316794f7b4.tar.bz2 android_external_libxml2-3e0eec43196e9c4d770b9a932ad131316794f7b4.zip |
Adding some missing NULL checks
in SAX2 DOM building code and in the HTML parser
Diffstat (limited to 'HTMLparser.c')
-rw-r--r-- | HTMLparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/HTMLparser.c b/HTMLparser.c index dff8e1df..c26389f6 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -3671,13 +3671,13 @@ htmlParseStartTag(htmlParserCtxtPtr ctxt) { int i; int discardtag = 0; - if (ctxt->instate == XML_PARSER_EOF) - return(-1); if ((ctxt == NULL) || (ctxt->input == NULL)) { htmlParseErr(ctxt, XML_ERR_INTERNAL_ERROR, "htmlParseStartTag: context error\n", NULL, NULL); return -1; } + if (ctxt->instate == XML_PARSER_EOF) + return(-1); if (CUR != '<') return -1; NEXT; |