diff options
author | Kirill Simonov <xi@resolvent.net> | 2010-10-11 06:29:07 +0000 |
---|---|---|
committer | Kirill Simonov <xi@resolvent.net> | 2010-10-11 06:29:07 +0000 |
commit | bbaaf49bc48a283859625871216b487b8bb11af8 (patch) | |
tree | 599e7287ea8b00789e2945dd287ef535af926413 | |
parent | d2f37f69785402c0d04ade82fef6b581406655c4 (diff) | |
download | libyaml-hg-bbaaf49bc48a283859625871216b487b8bb11af8.tar.gz |
Fixed a bug which prevented an empty mapping from being used as a simple key (#150, thank to spitzak(at)rhythm(dot)com).
-rw-r--r-- | src/emitter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emitter.c b/src/emitter.c index 9a5b3fa..c4b56a2 100644 --- a/src/emitter.c +++ b/src/emitter.c @@ -1154,7 +1154,7 @@ yaml_emitter_check_simple_key(yaml_emitter_t *emitter) 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 |