Skip to content

Commit

Permalink
Add Coccinelle patch for strempty() usage
Browse files Browse the repository at this point in the history
  • Loading branch information
zonque committed Sep 30, 2015
1 parent 68382f2 commit de89612
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions coccinelle/strempty.cocci
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@@
expression s;
@@
- s ?: ""
+ strempty(s)
@@
expression s;
@@
- s ? s : ""
+ strempty(s)

0 comments on commit de89612

Please sign in to comment.