mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
Add Coccinelle patch for strempty() usage
This commit is contained in:
parent
68382f22d7
commit
de896126ea
10
coccinelle/strempty.cocci
Normal file
10
coccinelle/strempty.cocci
Normal file
@ -0,0 +1,10 @@
|
||||
@@
|
||||
expression s;
|
||||
@@
|
||||
- s ?: ""
|
||||
+ strempty(s)
|
||||
@@
|
||||
expression s;
|
||||
@@
|
||||
- s ? s : ""
|
||||
+ strempty(s)
|
Loading…
Reference in New Issue
Block a user