mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
journal: fix uninitialized variable use
If the journal file being processed is archivied, seqnum_id will not be initialized before being passed on, and coverity complains. Initialize it to zero. CID #1453235
This commit is contained in:
parent
f144f6faa9
commit
06a368e819
@ -206,6 +206,9 @@ int journal_directory_vacuum(
|
||||
} else if (endswith(de->d_name, ".journal~")) {
|
||||
unsigned long long tmp;
|
||||
|
||||
/* seqnum_id won't be initialised before use below, so set to 0 */
|
||||
seqnum_id = SD_ID128_NULL;
|
||||
|
||||
/* Vacuum corrupted files */
|
||||
|
||||
if (q < 1 + 16 + 1 + 16 + 8 + 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user