mirror of
https://github.com/systemd/systemd.git
synced 2024-12-02 14:53:35 +08:00
analyze: drop duplicated :
Before, this returns e.g. "/current_dir::", After, this returns e.g. "/current_dir:".
This commit is contained in:
parent
b7c1f9eaf4
commit
6636145b3e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user