fixed: comparison operator info has been incorrectly written to type field

Sat, 30 May 2015 14:14:36 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 30 May 2015 14:14:36 +0200
changeset 125
5e2576b08680
parent 124
41939c8f3f9c
child 126
b156cae29e65

fixed: comparison operator info has been incorrectly written to type field

libidav/davqlparser.c file | annotate | diff | comparison | revisions
--- a/libidav/davqlparser.c	Sat May 30 13:49:17 2015 +0200
+++ b/libidav/davqlparser.c	Sat May 30 14:14:36 2015 +0200
@@ -1107,19 +1107,19 @@
         } else {
             if (tokenvalue_is(token, "=")) {
                 if (tokenvalue_is(optok, "!")) {
-                    expr->type = DAVQL_NEQ;
+                    expr->op = DAVQL_NEQ;
                 } else if (tokenvalue_is(optok, "<")) {
-                    expr->type = DAVQL_LE;
+                    expr->op = DAVQL_LE;
                 } else if (tokenvalue_is(optok, ">")) {
-                    expr->type = DAVQL_GE;
+                    expr->op = DAVQL_GE;
                 }
                 total_consumed++;
                 token = token->next;
             } else {
                 if (tokenvalue_is(optok, "<")) {
-                    expr->type = DAVQL_LT;
+                    expr->op = DAVQL_LT;
                 } else if (tokenvalue_is(optok, ">")) {
-                    expr->type = DAVQL_GT;
+                    expr->op = DAVQL_GT;
                 }
             }
         }

mercurial