aboutsummaryrefslogtreecommitdiffstats
path: root/src/servers/coopgamma.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-08-05 21:26:44 +0200
committerMattias Andrée <maandree@kth.se>2016-08-05 21:26:44 +0200
commit20e81300c63e41c3fc8bf7dea6f5438fcf92da55 (patch)
tree922342e6439f90ccd4e186a5a703314630d5ff17 /src/servers/coopgamma.c
parentFix memory leak (diff)
downloadcoopgammad-20e81300c63e41c3fc8bf7dea6f5438fcf92da55.tar.gz
coopgammad-20e81300c63e41c3fc8bf7dea6f5438fcf92da55.tar.bz2
coopgammad-20e81300c63e41c3fc8bf7dea6f5438fcf92da55.tar.xz
typo + state dumping
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/servers/coopgamma.c')
-rw-r--r--src/servers/coopgamma.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/servers/coopgamma.c b/src/servers/coopgamma.c
index 26b000d..4e126cf 100644
--- a/src/servers/coopgamma.c
+++ b/src/servers/coopgamma.c
@@ -188,6 +188,10 @@ static ssize_t add_filter(struct output* restrict out, struct filter* restrict f
memmove(out->table_sums + i + 1, out->table_sums + i, (n - i) * sizeof(*(out->table_sums)));
out->table_size++;
+ out->table_filters[i] = *filter;
+ filter->class = NULL;
+ filter->ramps = NULL;
+
COPY_RAMP_SIZES(&(out->table_sums[i].u8), out);
switch (out->depth)
{
@@ -203,10 +207,6 @@ static ssize_t add_filter(struct output* restrict out, struct filter* restrict f
if (r < 0)
return -1;
- out->table_filters[i] = *filter;
- filter->class = NULL;
- filter->ramps = NULL;
-
return (ssize_t)i;
}