CLEANUP: Use `isttest()` and `istfree()`
This adjusts a few locations to make use of `isttest()` and `istfree()`.
diff --git a/src/http_fetch.c b/src/http_fetch.c
index dbbb5ec..9113b5e 100644
--- a/src/http_fetch.c
+++ b/src/http_fetch.c
@@ -987,7 +987,7 @@
sl = http_get_stline(htx);
path = iststop(http_get_path(htx_sl_req_uri(sl)), '?');
- if (!path.ptr)
+ if (!isttest(path))
return 0;
/* OK, we got the '/' ! */
@@ -1028,7 +1028,7 @@
/* now retrieve the path */
sl = http_get_stline(htx);
path = http_get_path(htx_sl_req_uri(sl));
- if (path.ptr) {
+ if (isttest(path)) {
size_t len;
for (len = 0; len < path.len && *(path.ptr + len) != '?'; len++)
@@ -1074,7 +1074,7 @@
/* now retrieve the path */
sl = http_get_stline(htx);
path = http_get_path(htx_sl_req_uri(sl));
- if (path.ptr) {
+ if (isttest(path)) {
size_t len;
for (len = 0; len < path.len && *(path.ptr + len) != '?'; len++)
@@ -1422,7 +1422,7 @@
path.len = ptr - path.ptr;
path = http_get_path(path);
- if (!path.ptr)
+ if (!isttest(path))
return 0;
smp->data.u.str.area = path.ptr;