Skip to content

Commit

Permalink
Fix -Wuninitialized warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lclc committed Dec 28, 2017
1 parent d54f39a commit 1065303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ class CAddrDb {
} 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;
Expand Down

0 comments on commit 1065303

Please sign in to comment.