]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal: drop an unused variable clang is complaining about
authorEvgeny Vereshchagin <evvers@ya.ru>
Mon, 29 Oct 2018 15:21:58 +0000 (15:21 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Mon, 29 Oct 2018 15:21:58 +0000 (15:21 +0000)
../../src/systemd/src/journal/journal-file.c:3592:30: warning: unused variable 'p' [-Wunused-variable]
        _cleanup_free_ char *p = NULL;
                             ^
1 warning generated.

This is a follow-up to 681276589159fa08e0a.

src/journal/journal-file.c

index c4addc6283eeebc5a04de4558fb17acad2bd6e90..14da087f24ac039143abb12f29beca5f606862bb 100644 (file)
@@ -3589,7 +3589,6 @@ int journal_file_open_reliably(
                 JournalFile *template,
                 JournalFile **ret) {
 
-        _cleanup_free_ char *p = NULL;
         int r;
 
         r = journal_file_open(-1, fname, flags, mode, compress, compress_threshold_bytes, seal, metrics, mmap_cache,