Ticket #150 (closed defect: fixed)

Opened 2 years ago

Last modified 16 months ago

Typo in emitter.c

Reported by: spitzak@… Owned by: xi
Priority: normal Component: libyaml
Severity: normal Keywords:
Cc:

Description (last modified by xi) (diff)

In libyaml stable branch there appears to be a typo, here is a patch:

--- src/emitter.c       (revision 369)
+++ src/emitter.c       (working copy)
@@ -1154,7 +1154,7 @@
             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

Attachments

Change History

Changed 2 years ago by spitzak@…

  • component changed from pyyaml to libyaml

Changed 16 months ago by xi

  • description modified (diff)

Changed 16 months ago by xi

  • status changed from new to closed
  • resolution set to fixed

Thank you for the patch, applied in [370].

Add/Change #150 (Typo in emitter.c)

Author


E-mail address and user name can be saved in the Preferences.


Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.