analyze: drop duplicated :
Before, this returns e.g. "/current_dir::", After, this returns e.g. "/current_dir:".
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user