Skip to content
Snippets Groups Projects
Commit 44237b7e204a authored by Kirill Simonov's avatar Kirill Simonov
Browse files

Fixed a bug which prevented an empty mapping from being used as a simple key...

Fixed a bug which prevented an empty mapping from being used as a simple key (#150, thank to spitzak(at)rhythm(dot)com).
parent ad2c5bb91e17
Branches
No related tags found
No related merge requests found
......@@ -1154,7 +1154,7 @@
break;
case YAML_MAPPING_START_EVENT:
if (!yaml_emitter_check_empty_sequence(emitter))
if (!yaml_emitter_check_empty_mapping(emitter))
return 0;
length += emitter->anchor_data.anchor_length
+ emitter->tag_data.handle_length
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment