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