lib/kvec: Do not use kv_init unless needed

This commit is contained in:
ZyX
2016-05-01 05:10:27 +03:00
parent 8cfb272c74
commit d007c2977b
3 changed files with 12 additions and 9 deletions

View File

@@ -574,8 +574,7 @@ static void send_event(Channel *channel,
static void broadcast_event(char *name, Array args)
{
kvec_t(Channel *) subscribed;
kv_init(subscribed);
kvec_t(Channel *) subscribed = KV_INITIAL_VALUE;
Channel *channel;
map_foreach_value(channels, channel, {