mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09: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