From 14abfb61fb1784bbea30ec135e5b24440ba92b47 Mon Sep 17 00:00:00 2001 From: Tim Duesterhus Date: Tue, 15 Mar 2022 13:11:07 +0100 Subject: [PATCH] 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. --- dev/coccinelle/ist.cocci | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dev/coccinelle/ist.cocci b/dev/coccinelle/ist.cocci index ea13d39d2..acde626b0 100644 --- a/dev/coccinelle/ist.cocci +++ b/dev/coccinelle/ist.cocci @@ -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;