]> git.sur5r.net Git - openldap/commitdiff
Silence more uninit warnings
authorHallvard Furuseth <hallvard@openldap.org>
Sat, 6 Jul 2013 19:42:45 +0000 (21:42 +0200)
committerHallvard Furuseth <hallvard@openldap.org>
Sat, 6 Jul 2013 19:42:45 +0000 (21:42 +0200)
libraries/liblmdb/mdb.c

index bc727cf2a74186f39cf4910fb4fca61c09f1529b..d4f73282dec80df433024dfba36881d067e91624 100644 (file)
@@ -2209,13 +2209,13 @@ mdb_page_flush(MDB_txn *txn)
        unsigned        psize = env->me_psize;
        int                     i, pagecount = dl[0].mid, rc;
        size_t          size = 0, pos = 0;
-       pgno_t          pgno;
+       pgno_t          pgno = 0;
        MDB_page        *dp = NULL;
 #ifdef _WIN32
        OVERLAPPED      ov;
 #else
        struct iovec iov[MDB_COMMIT_PAGES];
-       ssize_t         wpos, wsize = 0, wres;
+       ssize_t         wpos = 0, wsize = 0, wres;
        size_t          next_pos = 1; /* impossible pos, so pos != next_pos */
        int                     n = 0;
 #endif