diff options
author | xi <xi@18f92427-320e-0410-9341-c67f048884a3> | 2010-10-11 06:29:07 +0000 |
---|---|---|
committer | xi <xi@18f92427-320e-0410-9341-c67f048884a3> | 2010-10-11 06:29:07 +0000 |
commit | 4947335540988a5d6b82bb144770b43b60cab309 (patch) | |
tree | 599e7287ea8b00789e2945dd287ef535af926413 | |
parent | cd0bf81ee8db185a5e53a83cd4b44b6feb18e9cc (diff) | |
download | libyaml-4947335540988a5d6b82bb144770b43b60cab309.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).
git-svn-id: http://svn.pyyaml.org/libyaml/branches/stable@370 18f92427-320e-0410-9341-c67f048884a3
-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 |