Staging
v0.7.0
https://github.com/git/git
Raw File
Tip revision: 6e9e91e9cae74cd7feb9300563d40361b2b17dd2 authored by Junio C Hamano on 27 September 2018, 18:44:07 UTC
Git 2.17.2
Tip revision: 6e9e91e
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