mirror of
https://github.com/git/git
synced 2024-08-28 12:09:19 +00:00
Merge branch 'jc/cocci-xstrdup-or-null-fix' into maint
Get rid of a bogus and over-eager coccinelle rule. source: <xmqq1qxd6e4x.fsf@gitster.g> * jc/cocci-xstrdup-or-null-fix: cocci: drop bogus xstrdup_or_null() rule
This commit is contained in:
commit
c038dd6fdb
|
@ -1,11 +1,3 @@
|
|||
@@
|
||||
expression E;
|
||||
expression V;
|
||||
@@
|
||||
- if (E)
|
||||
- V = xstrdup(E);
|
||||
+ V = xstrdup_or_null(E);
|
||||
|
||||
@@
|
||||
expression E;
|
||||
@@
|
||||
|
|
Loading…
Reference in a new issue