Sign in
third-party-mirror
/
systemd
/
2398d87694e8af48e92ff8fb5f9cf273f706fb00
/
.
/
coccinelle
/
empty-to-root.cocci
blob: 3720497bef9f60b526c16f76be2f403a3b029c8d [
file
] [
log
] [
blame
]
@@
expression s
;
@@
-
if
(
empty_or_root
(
s
))
-
s
=
"/"
;
+
s
=
empty_to_root
(
s
);
@@
expression s
;
@@
-
(
empty_or_root
(
s
)
?
"/"
:
s
)
+
empty_to_root
(
s
)
@@
expression s
;
@@
-
(
s
?
s
:
"/"
)
+
empty_to_root
(
s
)