From e28e9f9f724d4d79abb1cd7eeda3df5efda778bd Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 8 Oct 2009 12:28:54 +0200 Subject: [PATCH] Fix filters parsing Fix the filter parsing so that equal name=value is working again. In parse_filter, the eq would be set to NULL after finding '='. --- src/logic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logic.c b/src/logic.c index f9cd08f..26fe5e7 100644 --- a/src/logic.c +++ b/src/logic.c @@ -446,7 +446,7 @@ static struct database_criterion *parse_filter(NMEM m, const char *buf) char *eq; if ((eq = strchr(values[i], '='))) new->type = PAZPAR2_STRING_MATCH; - if ((eq = strchr(values[i], '~'))) + else if ((eq = strchr(values[i], '~'))) new->type = PAZPAR2_SUBSTRING_MATCH; if (!eq) { -- 1.7.10.4