analyze: drop duplicated :

Before, this returns e.g. "/current_dir::",
After, this returns e.g. "/current_dir:".
This commit is contained in:
Yu Watanabe 2023-11-24 04:44:33 +09:00
parent b7c1f9eaf4
commit 6636145b3e

View File

@ -104,7 +104,7 @@ int verify_generate_path(char **ret, char **filenames) {
old = getenv("SYSTEMD_UNIT_PATH");
if (!streq_ptr(old, "")) {
if (!old)
old = ":";
old = "";
r = strv_extend(&ans, old);
if (r < 0)