Skip to content

Commit

Permalink
Fix local variable declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
iwadon committed Mar 5, 2012
1 parent 91d1f47 commit ef1c76c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/nokogiri/xml_document.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,6 @@ static VALUE canonicalize(int argc, VALUE* argv, VALUE self)
xmlChar **ns;
long ns_len, i;

rb_scan_args(argc, argv, "03", &mode, &incl_ns, &with_comments);

xmlDocPtr doc;
xmlOutputBufferPtr buf;
xmlC14NIsVisibleCallback cb = NULL;
Expand All @@ -478,6 +476,8 @@ static VALUE canonicalize(int argc, VALUE* argv, VALUE self)
VALUE rb_cStringIO;
VALUE io;

rb_scan_args(argc, argv, "03", &mode, &incl_ns, &with_comments);

Data_Get_Struct(self, xmlDoc, doc);

rb_cStringIO = rb_const_get_at(rb_cObject, rb_intern("StringIO"));
Expand Down

0 comments on commit ef1c76c

Please sign in to comment.