mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
coccinelle: add coccinelle script for empty_or_dash() use
This commit is contained in:
parent
dc90e0faae
commit
ca7410fe43
5
coccinelle/empty-or-dash.cocci
Normal file
5
coccinelle/empty-or-dash.cocci
Normal file
@ -0,0 +1,5 @@
|
||||
@@
|
||||
expression s;
|
||||
@@
|
||||
- (isempty(s) || streq(s, "-"))
|
||||
+ empty_or_dash(s)
|
Loading…
Reference in New Issue
Block a user