mirror of
https://github.com/systemd/systemd
synced 2025-10-06 00:13:24 +02:00
coccinelle: skip strjoin transformation in test_strjoin()
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
@@
|
||||
expression list args;
|
||||
@@
|
||||
- strjoin(args, NULL);
|
||||
+ strjoin(args);
|
||||
@@
|
||||
position p : script:python() { p[0].current_element != "test_strjoin" };
|
||||
expression t;
|
||||
expression list args;
|
||||
@@
|
||||
- t = strjoin(args, NULL);
|
||||
(
|
||||
- strjoin@p(args, NULL);
|
||||
+ strjoin(args);
|
||||
|
|
||||
- t = strjoin@p(args, NULL);
|
||||
+ t = strjoin(args);
|
||||
@@
|
||||
expression list args;
|
||||
@@
|
||||
- return strjoin(args, NULL);
|
||||
|
|
||||
- return strjoin@p(args, NULL);
|
||||
+ return strjoin(args);
|
||||
)
|
||||
|
Reference in New Issue
Block a user