summaryrefslogtreecommitdiff
path: root/coccinelle/strjoina.cocci
blob: 891b22a20406f2ddb7e700ca2d02a3d65784d8b4 (plain)
1
2
3
4
5
6
7
8
/* SPDX-License-Identifier: LGPL-2.1-or-later */
@@
position p : script:python() { p[0].current_element != "test_strjoina" };
expression n, m;
expression list s;
@@
- n = strjoina@p(m, s, NULL);
+ n = strjoina(m, s);