Fix -Wuninitialized warnings

This commit is contained in:
Lucas Betschart 2017-12-28 23:45:38 +01:00
parent d54f39a1ee
commit 1065303ecb

2
db.h
View file

@ -281,7 +281,7 @@ public:
} else {
CAddrDb *db = const_cast<CAddrDb*>(this);
db->nId = 0;
int n;
int n = 0;
READWRITE(n);
for (int i=0; i<n; i++) {
CAddrInfo info;