uri = htx_sl_req_uri(http_get_stline(htxbuf(&s->req.buf)));
if (s->be->lbprm.arg_opt1 & 2) {
uri = http_get_path(uri);
- if (!uri.ptr)
+ if (!isttest(uri))
uri = ist("");
}
srv = get_server_uh(s->be, uri.ptr, uri.len, prev_srv);
out.len = in.len;
out.ptr = chunk_newstr(store);
- if (unlikely(!out.ptr))
+ if (unlikely(!isttest(out)))
return out;
if (unlikely(store->data + out.len > store->size)) {
metadata[LOG_META_TAG].len = p - metadata[LOG_META_TAG].ptr;
metadata[LOG_META_PID].ptr = p + 1;
}
- else if (*p == ']' && metadata[LOG_META_PID].ptr) {
+ else if (*p == ']' && isttest(metadata[LOG_META_PID])) {
if (p[1] != ':')
return;
metadata[LOG_META_PID].len = p - metadata[LOG_META_PID].ptr;
entry->node.key = strdup(from);
entry->name = ist2(strdup(to), strlen(to));
- if (!entry->node.key || !entry->name.ptr) {
+ if (!entry->node.key || !isttest(entry->name)) {
free(entry->node.key);
istfree(&entry->name);
free(entry);
* is present, otherwise it must be deleted.
*/
v = istist(v, ist("trailers"));
- if (!v.ptr || (v.len > 8 && v.ptr[8] != ','))
+ if (!isttest(v) || (v.len > 8 && v.ptr[8] != ','))
continue;
v = ist("trailers");
}
words++;
line[words++] = ist("] ");
- if (ist_func.ptr) {
+ if (isttest(ist_func)) {
line[words++] = ist_func;
line[words++] = ist("(): ");
}