From 14eb3285ab5b22064b34255fda17599656f05308 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 1 Oct 2020 10:53:56 +0200 Subject: execute: use empty_to_root() a bit more --- coccinelle/empty-to-root.cocci | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'coccinelle') diff --git a/coccinelle/empty-to-root.cocci b/coccinelle/empty-to-root.cocci index 45627c9801..3720497bef 100644 --- a/coccinelle/empty-to-root.cocci +++ b/coccinelle/empty-to-root.cocci @@ -9,3 +9,8 @@ expression s; @@ - (empty_or_root(s) ? "/" : s) + empty_to_root(s) +@@ +expression s; +@@ +- (s ? s : "/") ++ empty_to_root(s) -- cgit v1.2.1