Skip to content

Commit

Permalink
changing the global error function on SAX load. closes #87
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jul 1, 2009
1 parent 4d63571 commit d23fe2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/nokogiri/xml_sax_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ static VALUE allocate(VALUE klass)
{
xmlSAXHandlerPtr handler = calloc(1, sizeof(xmlSAXHandler));

xmlSetStructuredErrorFunc(NULL, NULL);

handler->startDocument = start_document;
handler->endDocument = end_document;
handler->startElement = start_element;
Expand Down

0 comments on commit d23fe2c

Please sign in to comment.