]> andersk Git - libyaml.git/commitdiff
Fixed a bug which prevented an empty mapping from being used as a simple key (#150...
authorKirill Simonov <xi@resolvent.net>
Mon, 11 Oct 2010 06:29:07 +0000 (06:29 +0000)
committerKirill Simonov <xi@resolvent.net>
Mon, 11 Oct 2010 06:29:07 +0000 (06:29 +0000)
src/emitter.c

index 9a5b3faa0f97467d1cb8c0fea5b5349587cad244..c4b56a26bb56e33cd3b2a54eee040211c39cae96 100644 (file)
@@ -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
This page took 0.033968 seconds and 5 git commands to generate.