1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-26 08:55:18 +03:00
systemd-stable/coccinelle/empty-to-null.cocci
2017-12-07 12:13:00 +01:00

6 lines
63 B
Plaintext

@@
expression s;
@@
- isempty(s) ? NULL : s
+ empty_to_null(s)