Staging
v0.8.1
https://github.com/git/git
Raw File
Tip revision: 35ee755a8c43bcb3c2786522d423f006c23d32df authored by Junio C Hamano on 19 February 2019, 21:20:23 UTC
Git 2.21-rc2
Tip revision: 35ee755
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