mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
journal: fix compiler warning in real_journal_next()
gcc (4.8.2, arm) does not understand that next_beyond_location() will always set 'p' when it returns > 0. Initialize p in order to fix this.
This commit is contained in:
parent
c94d7fc3ce
commit
a002d44b00
@ -871,9 +871,9 @@ static int next_beyond_location(sd_journal *j, JournalFile *f, direction_t direc
|
||||
static int real_journal_next(sd_journal *j, direction_t direction) {
|
||||
JournalFile *f, *new_file = NULL;
|
||||
uint64_t new_offset = 0;
|
||||
Object *o;
|
||||
uint64_t p;
|
||||
uint64_t p = 0;
|
||||
Iterator i;
|
||||
Object *o;
|
||||
int r;
|
||||
|
||||
assert_return(j, -EINVAL);
|
||||
|
Loading…
Reference in New Issue
Block a user