Staging
v0.8.1
https://github.com/git/git
Raw File
Tip revision: 53a06cf39b756eddfe4a2a34da93e3d04eb7b728 authored by Johannes Schindelin on 04 December 2019, 22:10:12 UTC
Git 2.24.1
Tip revision: 53a06cf
xstrdup_or_null.cocci
@@
expression E;
expression V;
@@
- if (E)
-    V = xstrdup(E);
+ V = xstrdup_or_null(E);

@@
expression E;
@@
- xstrdup(absolute_path(E))
+ absolute_pathdup(E)
back to top