Rivoreo Source Code Repositories
src.rivoreo.one
/
systemd-stable
/
v243-rc1
/
.
/
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
)