Skip to content

Commit 307c9e3

Browse files
committed
Picked r60919
ruby/ruby@2d9f20e
1 parent 462a9a0 commit 307c9e3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ext/psych/psych_parser.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ static VALUE parse(int argc, VALUE *argv, VALUE self)
292292
}
293293

294294
while(!done) {
295+
VALUE event_args[5];
296+
VALUE start_line, start_column, end_line, end_column;
297+
295298
if(!yaml_parser_parse(parser, &event)) {
296299
VALUE exception;
297300

@@ -302,9 +305,6 @@ static VALUE parse(int argc, VALUE *argv, VALUE self)
302305
rb_exc_raise(exception);
303306
}
304307

305-
VALUE event_args[5];
306-
VALUE start_line, start_column, end_line, end_column;
307-
308308
start_line = INT2NUM((long)event.start_mark.line);
309309
start_column = INT2NUM((long)event.start_mark.column);
310310
end_line = INT2NUM((long)event.end_mark.line);

0 commit comments

Comments
 (0)