diff options
author | Kirill Simonov <xi@resolvent.net> | 2009-02-23 19:59:19 +0000 |
---|---|---|
committer | Kirill Simonov <xi@resolvent.net> | 2009-02-23 19:59:19 +0000 |
commit | 252c575a5cd67b2207ef79e6b29d6f4d12f21ada (patch) | |
tree | 3741e793285211f31b87564f372d22709f437bb4 /src/parser.c | |
parent | 45bc975e7b3b34f1f6e29c1b2941de14fb815a55 (diff) | |
download | libyaml-git-252c575a5cd67b2207ef79e6b29d6f4d12f21ada.tar.gz |
Fixed non-ANSI initializations (fixes #115).
Diffstat (limited to 'src/parser.c')
-rw-r--r-- | src/parser.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parser.c b/src/parser.c index 4d4d3b7..eb2a2c7 100644 --- a/src/parser.c +++ b/src/parser.c @@ -1280,10 +1280,10 @@ yaml_parser_process_directives(yaml_parser_t *parser, } else if (token->type == YAML_TAG_DIRECTIVE_TOKEN) { - yaml_tag_directive_t value = { - token->data.tag_directive.handle, - token->data.tag_directive.prefix - }; + yaml_tag_directive_t value; + value.handle = token->data.tag_directive.handle; + value.prefix = token->data.tag_directive.prefix; + if (!yaml_parser_append_tag_directive(parser, value, 0, token->start_mark)) goto error; |