diff options
author | xi <xi@18f92427-320e-0410-9341-c67f048884a3> | 2006-07-30 12:49:17 +0000 |
---|---|---|
committer | xi <xi@18f92427-320e-0410-9341-c67f048884a3> | 2006-07-30 12:49:17 +0000 |
commit | aad66de23cebd4f2b62a7acb3ddf3891cb6b0a15 (patch) | |
tree | a0877e5d0deb5bbb5ad4410a6a5b7a4c928def6c /src/parser.c | |
parent | 4532a6f7d20a9fd4ac14cd3a698f17a011d456ce (diff) | |
download | libyaml-aad66de23cebd4f2b62a7acb3ddf3891cb6b0a15.tar.gz |
Fix Emitter bugs and leaks.
git-svn-id: http://svn.pyyaml.org/libyaml/trunk@216 18f92427-320e-0410-9341-c67f048884a3
Diffstat (limited to 'src/parser.c')
-rw-r--r-- | src/parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.c b/src/parser.c index 0b5b543..c9f67af 100644 --- a/src/parser.c +++ b/src/parser.c @@ -1252,7 +1252,7 @@ yaml_parser_process_directives(yaml_parser_t *parser, goto error; } if (token->data.version_directive.major != 1 - && token->data.version_directive.minor != 1) { + || token->data.version_directive.minor != 1) { yaml_parser_set_parser_error(parser, "found incompatible YAML document", token->start_mark); goto error; |