From: Kay Sievers Date: Sat, 31 Dec 2011 02:55:35 +0000 (+0100) Subject: journal: silence gcc warnings X-Git-Tag: v38~135 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c8a39b883d77a1e04f2947a2e890dfb8dd51d04;p=systemd journal: silence gcc warnings --- diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index fd2e9ebb..45aab0e5 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -283,7 +283,7 @@ static int journal_file_map( } static int journal_file_move_to(JournalFile *f, int wt, uint64_t offset, uint64_t size, void **ret) { - void *p; + void *p = NULL; uint64_t delta; int r; Window *w; @@ -1036,7 +1036,7 @@ static int generic_array_get(JournalFile *f, Object **ret, uint64_t *offset) { Object *o; - uint64_t p, a; + uint64_t p = 0, a; int r; assert(f);