aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-04-01 11:24:35 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-04-01 11:24:35 +0200
commite258bb27135e755ea57c6d1e83e298d640913fc1 (patch)
tree0ae705962f55de0a13318168a6589c14d6f408e5 /channel.c
parentbb218f6ab257e1ced214fcc815a2357313ac1e38 (diff)
v2.14
Diffstat (limited to 'channel.c')
-rw-r--r--channel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channel.c b/channel.c
index f0dfb25..3e3576c 100644
--- a/channel.c
+++ b/channel.c
@@ -133,11 +133,12 @@ read_config()
if (line[0] == '\n' || line[0] == '#' || line[0] == '%')
continue;
if (1 == sscanf(line,"[%99[^]]]",val)) {
- if (0 == (count % 16))
+ if (0 == (count % 16)) {
if (!count)
channels = malloc(sizeof(struct CHANNEL*)*16);
else
channels = realloc(channels,sizeof(struct CHANNEL*)*(count+16));
+ }
current = channels[count] = malloc(sizeof(struct CHANNEL));
count++;
memcpy(current,&defaults,sizeof(struct CHANNEL));

Privacy Policy