char *uri_args;
char *path;
char *q;
- char *pos;
char *cp;
const char *path_args = 0;
int i = 0;
else if (!strcmp(srw_pdu->u.scan_request->queryType, "cql"))
{
q = request->scanClause;
- pos = strchr(q, ':');
- if (pos != NULL)
+ cp = strchr(q, ':');
+ if (cp != NULL)
{
yaz_add_name_value_str(encode, name, value, &i,
- "terms.lower", odr_strdup(encode, pos + 1));
- *pos = '\0';
+ "terms.lower", odr_strdup(encode, cp + 1));
+ *cp = '\0';
yaz_add_name_value_str(encode, name, value, &i,
"terms.fl", odr_strdup(encode, q));
- *pos = ':';
+ *cp = ':';
}
else
yaz_add_name_value_str(encode, name, value, &i,