summaryrefslogtreecommitdiff
path: root/coccinelle
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-09 14:04:09 -0400
committerSven Eden <yamakuzure@gmx.net>2017-06-16 10:12:57 +0200
commitc3493a44f55e1c807b2b772403c02880d4cb1b16 (patch)
treefd871bd45bafa81a8ea38f0ef97e4272928e5de7 /coccinelle
parent794becf1e6b0c357ad0d560b9c53e172cdb86e0b (diff)
tree-wide: remove useless NULLs from strjoina
The coccinelle patch didn't work in some places, I have no idea why.
Diffstat (limited to 'coccinelle')
-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 000000000..a6236eb0f
--- /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);