From: Hallvard Furuseth Date: Sat, 6 Jul 2013 19:42:45 +0000 (+0200) Subject: Silence more uninit warnings X-Git-Tag: OPENLDAP_REL_ENG_2_4_36~32^2~29 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3d1e70950455725a81fe9e3dc0370d994498d392;p=openldap Silence more uninit warnings --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index bc727cf2a7..d4f73282de 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -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