]> git.ipfire.org Git - thirdparty/systemd.git/blame_incremental - coccinelle/empty-to-root.cocci
test-network: Remove/replace non-capturing group regex
[thirdparty/systemd.git] / coccinelle / empty-to-root.cocci
... / ...
CommitLineData
1@@
2expression s;
3@@
4- if (empty_or_root(s))
5- s = "/";
6+ s = empty_to_root(s);
7@@
8expression s;
9@@
10- (empty_or_root(s) ? "/" : s)
11+ empty_to_root(s)