diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-21 03:07:01 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-21 03:26:16 +0900 |
commit | 657ee2d82b73818d0ee8c3c5962c1cb2dbd52b76 (patch) | |
tree | 3624791030beb2dfd75b654f24cf818a1c6444e2 /src/journal/sd-journal.c | |
parent | f9dc94408d70dd2f44915f4c6d67dc498c1c6243 (diff) | |
download | systemd-657ee2d82b73818d0ee8c3c5962c1cb2dbd52b76.tar.gz |
tree-wide: replace strjoin() with path_join()
Diffstat (limited to 'src/journal/sd-journal.c')
-rw-r--r-- | src/journal/sd-journal.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c index 40baf2b374..a4f1731613 100644 --- a/src/journal/sd-journal.c +++ b/src/journal/sd-journal.c @@ -1553,10 +1553,7 @@ static int add_directory(sd_journal *j, const char *prefix, const char *dirname) /* Adds a journal file directory to watch. If the directory is already tracked this updates the inotify watch * and reenumerates directory contents */ - if (dirname) - path = strjoin(prefix, "/", dirname); - else - path = strdup(prefix); + path = path_join(prefix, dirname); if (!path) { r = -ENOMEM; goto fail; |