diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-23 13:40:15 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-23 15:26:29 +0900 |
commit | 70a459986988fecf245cf5eb62e7982e790c8260 (patch) | |
tree | 3b3025402039f605c9e9295fa64561f908eced19 /ext/psych/yaml/dumper.c | |
parent | 666c077691a5521cb82254911f0abb9575cac9a1 (diff) |
[ruby/psych] Bump libyaml version to 0.2.5
https://github.com/ruby/psych/commit/39996192cc
Diffstat (limited to 'ext/psych/yaml/dumper.c')
-rw-r--r-- | ext/psych/yaml/dumper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/psych/yaml/dumper.c b/ext/psych/yaml/dumper.c index 29fb9c0784..1fe940b674 100644 --- a/ext/psych/yaml/dumper.c +++ b/ext/psych/yaml/dumper.c @@ -131,7 +131,7 @@ yaml_emitter_dump(yaml_emitter_t *emitter, yaml_document_t *document) assert(emitter->opened); /* Emitter should be opened. */ - emitter->anchors = yaml_malloc(sizeof(*(emitter->anchors)) + emitter->anchors = (yaml_anchors_t*)yaml_malloc(sizeof(*(emitter->anchors)) * (document->nodes.top - document->nodes.start)); if (!emitter->anchors) goto error; memset(emitter->anchors, 0, sizeof(*(emitter->anchors)) |