projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4474e23
)
Extra parantheses to make GCC happy
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 7 Oct 2009 08:49:14 +0000
(10:49 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 7 Oct 2009 08:49:14 +0000
(10:49 +0200)
src/logic.c
patch
|
blob
|
history
diff --git
a/src/logic.c
b/src/logic.c
index
697da4d
..
3a442e1
100644
(file)
--- 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)
{