1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 00:51:24 +03:00
systemd/coccinelle/strjoin.cocci

17 lines
320 B
Plaintext
Raw Normal View History

/* SPDX-License-Identifier: LGPL-2.1-or-later */
@@
position p : script:python() { p[0].current_element != "test_strjoin" };
expression t;
expression list args;
@@
(
- strjoin@p(args, NULL);
+ strjoin(args);
|
- t = strjoin@p(args, NULL);
+ t = strjoin(args);
|
- return strjoin@p(args, NULL);
+ return strjoin(args);
)