Permalink
Browse files

Cleanup a couple of weirdness in HTML parser

  • Loading branch information...
1 parent 9543aee commit ef9c636ac1494d7ead7461bbe9e18d4270224851 @libc libc committed with veillard Mar 15, 2010
Showing with 1 addition and 3 deletions.
  1. +1 −3 HTMLparser.c
View
@@ -267,8 +267,6 @@ htmlnamePop(htmlParserCtxtPtr ctxt)
#define NEXT xmlNextChar(ctxt)
#define RAW (ctxt->token ? -1 : (*ctxt->input->cur))
-#define NXT(val) ctxt->input->cur[(val)]
-#define CUR_PTR ctxt->input->cur
#define NEXTL(l) do { \
@@ -4428,7 +4426,7 @@ htmlInitParserCtxt(htmlParserCtxtPtr ctxt)
if (ctxt->nameTab == NULL) {
htmlErrMemory(NULL, "htmlInitParserCtxt: out of memory\n");
ctxt->nameNr = 0;
- ctxt->nameMax = 10;
+ ctxt->nameMax = 0;
ctxt->name = NULL;
ctxt->nodeNr = 0;
ctxt->nodeMax = 0;

0 comments on commit ef9c636

Please sign in to comment.