]> git.ipfire.org Git - thirdparty/systemd.git/blob - coccinelle/strjoina.cocci
Merge pull request #30634 from dtardon/docbook-valid-3
[thirdparty/systemd.git] / coccinelle / strjoina.cocci
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 @@
3 position p : script:python() { p[0].current_element != "test_strjoina" };
4 expression n, m;
5 expression list s;
6 @@
7 - n = strjoina@p(m, s, NULL);
8 + n = strjoina(m, s);