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 | 78855b7a9f632252d2f30ffefab05cc8226e7265 (patch) | |
tree | 599e7287ea8b00789e2945dd287ef535af926413 | |
parent | c5691834af0f9aa1a071003c3c110a59928eb47e (diff) | |
download | libyaml-git-78855b7a9f632252d2f30ffefab05cc8226e7265.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 |