ref: 9aa0dc277e1360b918aa62f87c92841f25f141ab
parent: 47337ba425c79771a522050f85d17db804619ac7
parent: 143ac6b1311c738587defa65016358fa71be0e31
author: Chris Moeller <[email protected]>
date: Wed May 7 17:09:09 EDT 2014
Merge pull request #9 from Vagabond/adt-valgrind-uninitialized-memory Fix 2 places valgrind warns about unintialized memory being used
--- a/dumb/src/it/itrender.c
+++ b/dumb/src/it/itrender.c
@@ -328,6 +328,8 @@
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;
--- a/dumb/src/it/readpsm.c
+++ b/dumb/src/it/readpsm.c
@@ -930,8 +930,10 @@
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++) {