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';