From cb0c43fb5f44aa9a3e39602b84ef42df02efa872 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Sat, 10 May 2014 18:11:58 -0700 Subject: [PATCH] Updated DUMB to fix two uninitialized variables --- Frameworks/Dumb/dumb/src/it/itrender.c | 2 ++ Frameworks/Dumb/dumb/src/it/readpsm.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Frameworks/Dumb/dumb/src/it/itrender.c b/Frameworks/Dumb/dumb/src/it/itrender.c index 85405a930..46d882918 100644 --- a/Frameworks/Dumb/dumb/src/it/itrender.c +++ b/Frameworks/Dumb/dumb/src/it/itrender.c @@ -328,6 +328,8 @@ static DUMB_IT_SIGRENDERER *dup_sigrenderer(DUMB_IT_SIGRENDERER *src, int n_chan dst->time_left = src->time_left; dst->sub_time_left = src->sub_time_left; + dst->ramp_style = src->ramp_style; + dst->click_remover = NULL; dst->callbacks = callbacks; diff --git a/Frameworks/Dumb/dumb/src/it/readpsm.c b/Frameworks/Dumb/dumb/src/it/readpsm.c index bdece48bb..99e97eb64 100644 --- a/Frameworks/Dumb/dumb/src/it/readpsm.c +++ b/Frameworks/Dumb/dumb/src/it/readpsm.c @@ -930,8 +930,10 @@ static DUMB_IT_SIGDATA *it_psm_load_sigdata(DUMBFILE *f, int * ver, int subsong) sigdata->sample = malloc(sigdata->n_samples * sizeof(*sigdata->sample)); if (!sigdata->sample) goto error_ev; - for (n = 0; n < sigdata->n_samples; n++) + for (n = 0; n < sigdata->n_samples; n++) { sigdata->sample[n].data = NULL; + sigdata->sample[n].flags = 0; + } o = 0; for (n = 0; n < n_chunks; n++) {