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:
e28e9f9
)
parse_filter: spelling and more readable
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 8 Oct 2009 10:33:06 +0000
(12:33 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 8 Oct 2009 10:33:06 +0000
(12:33 +0200)
src/logic.c
patch
|
blob
|
history
diff --git
a/src/logic.c
b/src/logic.c
index
26fe5e7
..
ced95ee
100644
(file)
--- a/
src/logic.c
+++ b/
src/logic.c
@@
-448,9
+448,9
@@
static struct database_criterion *parse_filter(NMEM m, const char *buf)
new->type = PAZPAR2_STRING_MATCH;
else if ((eq = strchr(values[i], '~')))
new->type = PAZPAR2_SUBSTRING_MATCH;
- if (!eq)
+ else if (!eq)
{
- yaz_log(YLOG_WARN, "Missing equal-signi/tilde in filter");
+ yaz_log(YLOG_WARN, "Missing equal-sign/tilde in filter");
return 0;
}
*(eq++) = '\0';