]> andersk Git - libyaml.git/blobdiff - src/parser.c
Fixed non-ANSI initializations (fixes #115).
[libyaml.git] / src / parser.c
index 4d4d3b7d3df3188833e0ff74d7206e652356fec6..eb2a2c792b7ddcbd5623bdbcaa3dc1368019053d 100644 (file)
@@ -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;
This page took 0.026089 seconds and 4 git commands to generate.