chiark
/
gitweb
/
~mdw
/
tripe
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1f68dfc
)
Fix uninitialized variable in p_create.
author
mdw
<mdw>
Thu, 29 Sep 2005 13:40:14 +0000
(13:40 +0000)
committer
mdw
<mdw>
Thu, 29 Sep 2005 13:40:14 +0000
(13:40 +0000)
peer.c
patch
|
blob
|
blame
|
history
diff --git
a/peer.c
b/peer.c
index 15a12b7ecd903cac1f2a98cadd6e5aaa95fdd06c..1542b35e290a3ced1900f751a1d908f93dd1cfb7 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->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)
memset(&p->st, 0, sizeof(stats));
p->st.t_start = time(0);
if ((p->t = spec->tops->create(p)) == 0)