Rivoreo Source Code Repositories
src.rivoreo.one
/
systemd-stable
/
v245-rc2
/
.
/
coccinelle
/
empty-to-root.cocci
blob: 45627c98019bbee737a980761385f3674af25de9 [
file
] [
log
] [
blame
] [
raw
]
@@
expression s
;
@@
-
if
(
empty_or_root
(
s
))
-
s
=
"/"
;
+
s
=
empty_to_root
(
s
);
@@
expression s
;
@@
-
(
empty_or_root
(
s
)
?
"/"
:
s
)
+
empty_to_root
(
s
)