From 8f9db2879b79f863f4392d51de1a5732beb51634 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 8 Oct 2009 12:33:06 +0200 Subject: [PATCH] parse_filter: spelling and more readable --- src/logic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/logic.c b/src/logic.c index 26fe5e7..ced95ee 100644 --- 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'; -- 1.7.10.4