]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - coccinelle/empty-to-null.cocci
man: fix reference to sd_bus_add_fallback_vtable
[thirdparty/systemd.git] / coccinelle / empty-to-null.cocci
index fbc75b9c343ca49688435e34e9cef32c35d81ff5..bc6c656e798a22cfde36457facb9c85042740f64 100644 (file)
@@ -1,5 +1,8 @@
 @@
+/* Avoid running this transformation on the empty_to_null function itself */
+position p : script:python() { p[0].current_element != "empty_to_null" };
 expression s;
 @@
-- isempty(s) ? NULL : s
+
+- isempty@p(s) ? NULL : s
 + empty_to_null(s)