]> err.no Git - systemd/commitdiff
journal: silence gcc warnings
authorKay Sievers <kay.sievers@vrfy.org>
Sat, 31 Dec 2011 02:55:35 +0000 (03:55 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Sat, 31 Dec 2011 02:55:35 +0000 (03:55 +0100)
src/journal/journal-file.c

index fd2e9ebbbcf1cb0a9d7905714537e35a12f9f328..45aab0e54a0eacfb2b3923a6c1ae2c8e50e66f0f 100644 (file)
@@ -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);