t5505: finalize transitioning to using the branch name `main`
[git] / contrib / coccinelle / xstrdup_or_null.cocci
1 @@
2 expression E;
3 expression V;
4 @@
5 - if (E)
6 -    V = xstrdup(E);
7 + V = xstrdup_or_null(E);
8
9 @@
10 expression E;
11 @@
12 - xstrdup(absolute_path(E))
13 + absolute_pathdup(E)