summaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
authorKirill Simonov <xi@resolvent.net>2006-07-30 12:49:17 +0000
committerKirill Simonov <xi@resolvent.net>2006-07-30 12:49:17 +0000
commit6d1672817d77bd1f8be2b13e5e44f22c3bc82c85 (patch)
treea0877e5d0deb5bbb5ad4410a6a5b7a4c928def6c /src/parser.c
parent784340c2a76df9edf81d378dd8e2f09cb059e509 (diff)
downloadlibyaml-git-6d1672817d77bd1f8be2b13e5e44f22c3bc82c85.tar.gz
Fix Emitter bugs and leaks.
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c2
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;