Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Slight correction of variable initialization.

  • Loading branch information...
commit 1fd1baf0c576ec92f628026c0650742622ace212 1 parent fd37cdd
Patrick Thomson authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  ext/libyaml/rubyext.c
View
3  ext/libyaml/rubyext.c
@@ -347,7 +347,8 @@ rb_yaml_parser_load(VALUE self, SEL sel)
rb_raise(rb_eRuntimeError, "expected DOCUMENT_START event");
}
- root = (get_node(parser) || Qnil);
+ root = get_node(parser);
+ if(root == 0) { root = Qnil; }
NEXT_EVENT();
if (parser->event.type != YAML_DOCUMENT_END_EVENT)
Please sign in to comment.
Something went wrong with that request. Please try again.