tvl-depot/third_party/git/contrib/coccinelle/xstrdup_or_null.cocci

14 lines
161 B
Text
Raw Normal View History

@@
expression E;
expression V;
@@
- if (E)
- V = xstrdup(E);
+ V = xstrdup_or_null(E);
@@
expression E;
@@
- xstrdup(absolute_path(E))
+ absolute_pathdup(E)