]> git.ipfire.org Git - thirdparty/systemd.git/blob - coccinelle/isempty.cocci
tree-wide: use strv_isempty() instead of strv_length() == 0
[thirdparty/systemd.git] / coccinelle / isempty.cocci
1 @@
2 expression s;
3 @@
4 - strv_length(s) == 0
5 + strv_isempty(s)
6 @@
7 expression s;
8 @@
9 - strlen(s) == 0
10 + isempty(s)
11 @@
12 expression s;
13 @@
14 - strlen_ptr(s) == 0
15 + isempty(s)