CLEANUP: Reapply ist.cocci with `--include-headers-for-types --recursive-includes`
Previous uses of `ist.cocci` did not add `--include-headers-for-types` and
`--recursive-includes` preventing Coccinelle seeing `struct ist` members of
other structs.
Reapply the patch with proper flags to further clean up the use of the ist API.
The command used was:
spatch -sp_file dev/coccinelle/ist.cocci -in_place --include-headers --include-headers-for-types --recursive-includes --dir src/
diff --git a/src/tcpcheck.c b/src/tcpcheck.c
index ba9321e..1926311 100644
--- a/src/tcpcheck.c
+++ b/src/tcpcheck.c
@@ -4992,7 +4992,7 @@
}
LIST_INIT(&hdr->value);
hdr->name = istdup(tmp_hdrs[i].n);
- if (!hdr->name.ptr) {
+ if (!isttest(hdr->name)) {
memprintf(errmsg, "out of memory");
goto error;
}