summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/psych/emitter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/psych/emitter.c b/ext/psych/emitter.c
index aa68e06..e5290e2 100644
--- a/ext/psych/emitter.c
+++ b/ext/psych/emitter.c
@@ -187,7 +187,7 @@ static VALUE start_mapping(
yaml_mapping_start_event_initialize(
&event,
(yaml_char_t *)(Qnil == anchor ? NULL : StringValuePtr(anchor)),
- (yaml_char_t *)(Qnil == anchor ? NULL : StringValuePtr(tag)),
+ (yaml_char_t *)(Qnil == tag ? NULL : StringValuePtr(tag)),
Qtrue == implicit ? 1 : 0,
(yaml_sequence_style_t)NUM2INT(style)
);