diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-29 06:39:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-29 06:39:05 +0300 |
commit | a2cfcafecef9f709d1d66eb67a672b3873dcf5c8 (patch) | |
tree | a4543c601e3bae04613821e7221689cffba02ba9 /src/emap | |
parent | cef6e6b495494f4e830de3612b0320bfbee9ba62 (diff) | |
download | plugin-a2cfcafecef9f709d1d66eb67a672b3873dcf5c8.tar.gz plugin-a2cfcafecef9f709d1d66eb67a672b3873dcf5c8.tar.bz2 plugin-a2cfcafecef9f709d1d66eb67a672b3873dcf5c8.tar.xz plugin-a2cfcafecef9f709d1d66eb67a672b3873dcf5c8.zip |
Init to 0 by default fake bl's before use.
Diffstat (limited to 'src/emap')
-rw-r--r-- | src/emap/send.c | 4 |
1 files 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; |