summaryrefslogtreecommitdiffstats
path: root/contrib/coccinelle/xstrdup_or_null.cocci
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--contrib/coccinelle/xstrdup_or_null.cocci5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/coccinelle/xstrdup_or_null.cocci b/contrib/coccinelle/xstrdup_or_null.cocci
new file mode 100644
index 0000000..9c1d293
--- /dev/null
+++ b/contrib/coccinelle/xstrdup_or_null.cocci
@@ -0,0 +1,5 @@
+@@
+expression E;
+@@
+- xstrdup(absolute_path(E))
++ absolute_pathdup(E)