From: Daniel Mack Date: Wed, 30 Sep 2015 10:23:57 +0000 (+0200) Subject: Add Coccinelle patch for strempty() usage X-Git-Tag: v227~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de896126ea54f6134a648f21a5ba6b5b610512e0;p=thirdparty%2Fsystemd.git Add Coccinelle patch for strempty() usage --- diff --git a/coccinelle/strempty.cocci b/coccinelle/strempty.cocci new file mode 100644 index 00000000000..e3bd0a1f560 --- /dev/null +++ b/coccinelle/strempty.cocci @@ -0,0 +1,10 @@ +@@ +expression s; +@@ +- s ?: "" ++ strempty(s) +@@ +expression s; +@@ +- s ? s : "" ++ strempty(s)