Skip to content

Commit

Permalink
Minor code maintenance.
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Savage committed May 24, 2011
1 parent f49e226 commit 3099f04
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ext/libxml/ruby_xml_document.c
Expand Up @@ -894,7 +894,6 @@ static VALUE rxml_document_validate_relaxng(VALUE self, VALUE relaxng)
*/
static VALUE rxml_document_validate_dtd(VALUE self, VALUE dtd)
{
VALUE error = Qnil;
xmlValidCtxt ctxt;
xmlDocPtr xdoc;
xmlDtdPtr xdtd;
Expand All @@ -904,11 +903,10 @@ static VALUE rxml_document_validate_dtd(VALUE self, VALUE dtd)

/* Setup context */
memset(&ctxt, 0, sizeof(xmlValidCtxt));
ctxt.userData = &error;

if (xmlValidateDtd(&ctxt, xdoc, xdtd))
{
return (Qtrue);
return Qtrue;
}
else
{
Expand Down

0 comments on commit 3099f04

Please sign in to comment.