projects
/
cobramush.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
646efa4
)
Initialize snooper array earlier in initializesock()
author
Ari Johnson
<ari@theari.com>
Tue, 10 May 2011 23:31:13 +0000
(19:31 -0400)
committer
Ari Johnson
<ari@theari.com>
Tue, 10 May 2011 23:31:13 +0000
(19:31 -0400)
src/bsd.c
patch
|
blob
|
history
diff --git
a/src/bsd.c
b/src/bsd.c
index ec3f02a77de29f33a72321875b5d4c813e71315c..6d573837a5516f3ce03b7aa154e11b7ddd8b6991 100644
(file)
--- a/
src/bsd.c
+++ b/
src/bsd.c
@@
-1820,6
+1820,8
@@
initializesock(int s, int os, char *addr, char *ip, int use_ssl
mush_panic("Out of memory.");
d->descriptor = s;
d->outdesc = os;
+ for (n = 0; n < MAX_SNOOPS; n++)
+ d->snooper[n] = -1;
d->input_handler = do_command;
d->connected = 0;
d->connected_at = mudtime;
@@
-1899,8
+1901,6
@@
initializesock(int s, int os, char *addr, char *ip, int use_ssl
if (d->player == 0)
welcome_user(d);
- for (n = 0; n < MAX_SNOOPS; n++)
- d->snooper[n] = -1;
return d;
}