summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Simonov <xi@resolvent.net>2010-10-11 06:29:07 +0000
committerKirill Simonov <xi@resolvent.net>2010-10-11 06:29:07 +0000
commitbbaaf49bc48a283859625871216b487b8bb11af8 (patch)
tree599e7287ea8b00789e2945dd287ef535af926413
parentd2f37f69785402c0d04ade82fef6b581406655c4 (diff)
downloadlibyaml-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.c2
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