mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
coccinelle: add coccinelle script for empty_or_dash() use
This commit is contained in:
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)
|
||||
Reference in New Issue
Block a user