summaryrefslogtreecommitdiffstats
path: root/coccinelle/strjoina.cocci
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-09 20:04:09 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-04-13 14:56:44 +0200
commit81d621034badfd75edb5e1fc88334af9a87a18e3 (patch)
tree5853402ea70da91f28c61c3bb78acca8774b4ac3 /coccinelle/strjoina.cocci
parentbasic/util: silence stupid gcc warnings about unitialized variable (diff)
downloadsystemd-81d621034badfd75edb5e1fc88334af9a87a18e3.tar.xz
systemd-81d621034badfd75edb5e1fc88334af9a87a18e3.zip
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/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);