projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e78bf3
)
fixed crash in module.c if no bot is available
author
pk910
<philipp@zoelle1.de>
Sat, 8 Sep 2012 15:33:26 +0000
(17:33 +0200)
committer
pk910
<philipp@zoelle1.de>
Sat, 8 Sep 2012 15:33:26 +0000
(17:33 +0200)
src/modules/stats.mod/module.c
patch
|
blob
|
history
diff --git
a/src/modules/stats.mod/module.c
b/src/modules/stats.mod/module.c
index ff5f8f6afb344de0ca14775ae62be0fe8c149662..c08e0fba58e8225341c6d8e5a2d1cc7563474c0f 100644
(file)
--- a/
src/modules/stats.mod/module.c
+++ b/
src/modules/stats.mod/module.c
@@
-94,7
+94,7
@@
static TIMEQ_CALLBACK(stats_timer_callback) {
if(get_int_field(tmp))
pkgpos += sprintf(pkgbuf + pkgpos, "*\n");
else {
- struct ClientSocket *bot, *bot1
, *bot2, *bot3
;
+ struct ClientSocket *bot, *bot1
= NULL, *bot2 = NULL, *bot3 = NULL
;
for(bot = getBots(SOCKET_FLAG_READY, NULL); bot; bot = getBots(SOCKET_FLAG_READY, bot)) {
if(bot->botid == 1 && (bot->flags & SOCKET_FLAG_PREFERRED))
bot1 = bot;