From: Adam Dickmeiss Date: Wed, 7 Oct 2009 08:49:14 +0000 (+0200) Subject: Extra parantheses to make GCC happy X-Git-Tag: v1.2.2~27^2~6 X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=commitdiff_plain;h=daeeaf69b55f65221c9c610066aa07d6b876cbca;p=pazpar2-moved-to-github.git Extra parantheses to make GCC happy --- 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) {