aboutsummaryrefslogtreecommitdiff
path: root/src/effects
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects')
-rw-r--r--src/effects/pulse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effects/pulse.c b/src/effects/pulse.c
index c2a324a..a6983ba 100644
--- a/src/effects/pulse.c
+++ b/src/effects/pulse.c
@@ -47,8 +47,8 @@ static void effect_pulse_pre(effect_t *effect, layout_t *layout, cairo_t *cr)
static effect_t *effect_pulse_allocate(const effect_info_t *info)
{
- effect_pulse_t *effect = calloc(1, sizeof(effect_pulse_t));
- assert(effect != NULL);
+ effect_pulse_t *effect = malloc(sizeof(effect_pulse_t));
+ effect_init((effect_t *)effect, info);
effect->amplitude = *(unsigned int *)info->state / 100.0;
return (effect_t *)effect;
}