1. Kirill Simonov
  2. libyaml

Commits

Kirill Simonov  committed 4de019f

Fixed a bug which prevented an empty mapping from being used as a simple key (#150, thank to spitzak(at)rhythm(dot)com).

  • Participants
  • Parent commits 754e22e
  • Branches default

Comments (0)

Files changed (1)

File src/emitter.c

View file
             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