From a2cfcafecef9f709d1d66eb67a672b3873dcf5c8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 29 Jul 2018 06:39:05 +0300 Subject: Init to 0 by default fake bl's before use. --- src/emap/send.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emap/send.c b/src/emap/send.c index b6f3d92..bf4b208 100644 --- a/src/emap/send.c +++ b/src/emap/send.c @@ -141,7 +141,7 @@ void send_mapmask(int fd, int mask) void send_mapmask_brodcast(const int map, const int mask) { - struct block_list bl; + struct block_list bl = {0}; char buf[10]; bl.m = map; @@ -304,7 +304,7 @@ void send_changemusic_brodcast(const int map, const char *music) if (!music) return; - struct block_list bl; + struct block_list bl = {0}; const int sz = (int)strlen(music) + 5; char *buf; -- cgit v1.2.3-70-g09d2