Skip to content

Commit c038dd6

Browse files
committed
Merge branch 'jc/cocci-xstrdup-or-null-fix' into maint
Get rid of a bogus and over-eager coccinelle rule. source: <[email protected]> * jc/cocci-xstrdup-or-null-fix: cocci: drop bogus xstrdup_or_null() rule
2 parents 676cead + 08bdd3a commit c038dd6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

contrib/coccinelle/xstrdup_or_null.cocci

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
@@
2-
expression E;
3-
expression V;
4-
@@
5-
- if (E)
6-
- V = xstrdup(E);
7-
+ V = xstrdup_or_null(E);
8-
91
@@
102
expression E;
113
@@

0 commit comments

Comments
 (0)