DEV: coccinelle: Add a new pattern to ist.cocci

This was previously ignored in "DEV: coccinelle: Fix incorrect replacement in ist.cocci",
but is now properly replaced by a simple `ist()` call.
This commit is contained in:
Tim Duesterhus 2022-03-15 13:11:07 +01:00 committed by Willy Tarreau
parent 7750850594
commit 14abfb61fb

View File

@ -4,8 +4,9 @@ expression p, l;
@@
(
i.ptr = p;
i.len = strlen(i.ptr);
- i.ptr = p;
- i.len = strlen(i.ptr);
+ i = ist(p);
|
- i.ptr = p;
- i.len = l;