1
1
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:
Daniel Mack 2015-09-30 12:23:57 +02:00
parent 68382f22d7
commit de896126ea

10
coccinelle/strempty.cocci Normal file
View File

@ -0,0 +1,10 @@
@@
expression s;
@@
- s ?: ""
+ strempty(s)
@@
expression s;
@@
- s ? s : ""
+ strempty(s)