Permalink
Browse files

Slight correction of variable initialization.

  • Loading branch information...
1 parent fd37cdd commit 1fd1baf0c576ec92f628026c0650742622ace212 Patrick Thomson committed Aug 5, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 ext/libyaml/rubyext.c
View
@@ -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)

0 comments on commit 1fd1baf

Please sign in to comment.