summaryrefslogtreecommitdiff
path: root/coccinelle/strjoina.cocci
diff options
context:
space:
mode:
Diffstat (limited to 'coccinelle/strjoina.cocci')
-rw-r--r--coccinelle/strjoina.cocci6
1 files changed, 6 insertions, 0 deletions
diff --git a/coccinelle/strjoina.cocci b/coccinelle/strjoina.cocci
new file mode 100644
index 0000000000..a6236eb0f9
--- /dev/null
+++ b/coccinelle/strjoina.cocci
@@ -0,0 +1,6 @@
+@@
+expression n, m;
+expression list s;
+@@
+- n = strjoina(m, s, NULL);
++ n = strjoina(m, s);