From daeeaf69b55f65221c9c610066aa07d6b876cbca Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 7 Oct 2009 10:49:14 +0200 Subject: [PATCH] Extra parantheses to make GCC happy --- src/logic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/logic.c b/src/logic.c index 697da4d..3a442e1 100644 --- a/src/logic.c +++ b/src/logic.c @@ -506,9 +506,9 @@ static struct database_criterion *parse_filter(NMEM m, const char *buf) int subi; struct database_criterion *new = nmem_malloc(m, sizeof(*new)); char *eq; - if (eq = strchr(values[i], '=')) + if ((eq = strchr(values[i], '='))) new->type = PAZPAR2_STRING_MATCH; - if (eq = strchr(values[i], '~')) + if ((eq = strchr(values[i], '~'))) new->type = PAZPAR2_SUBSTRING_MATCH; if (!eq) { -- 1.7.10.4