~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix uninitialized variable in p_create.
[tripe]
/
peer.c
diff --git
a/peer.c
b/peer.c
index
15a12b7
..
1542b35
100644
(file)
--- a/
peer.c
+++ b/
peer.c
@@
-621,6
+621,7
@@
peer *p_create(peerspec *spec)
p->spec.name = xstrdup(spec->name);
p->ks = 0;
p->prev = 0;
+ p->pings = 0;
memset(&p->st, 0, sizeof(stats));
p->st.t_start = time(0);
if ((p->t = spec->tops->create(p)) == 0)