ladspa/swh-uninit-variable.diff

211 lines
6.4 KiB
Diff

--- decay_1886.c-dist 2006-01-12 16:22:39.000000000 +0100
+++ decay_1886.c 2006-01-12 16:23:08.000000000 +0100
@@ -114,11 +114,11 @@ static LADSPA_Handle instantiateDecay(
const LADSPA_Descriptor *descriptor,
unsigned long s_rate) {
Decay *plugin_data = (Decay *)malloc(sizeof(Decay));
- LADSPA_Data b;
- char first_time;
- LADSPA_Data last_decay_time;
+ LADSPA_Data b = 0;
+ char first_time = 0;
+ LADSPA_Data last_decay_time = 0;
LADSPA_Data sample_rate;
- LADSPA_Data y;
+ LADSPA_Data y = 0;
#line 24 "decay_1886.xml"
sample_rate = s_rate;
--- delay_1898.c-dist 2006-01-12 16:14:54.000000000 +0100
+++ delay_1898.c 2006-01-12 16:16:25.000000000 +0100
@@ -187,11 +187,11 @@ static LADSPA_Handle instantiateDelay_n(
unsigned long s_rate) {
Delay_n *plugin_data = (Delay_n *)malloc(sizeof(Delay_n));
LADSPA_Data *buffer = NULL;
- unsigned int buffer_mask;
- LADSPA_Data delay_samples;
- LADSPA_Data last_delay_time;
- unsigned int sample_rate;
- long write_phase;
+ unsigned int buffer_mask = 0;
+ LADSPA_Data delay_samples = 0;
+ LADSPA_Data last_delay_time = 0;
+ unsigned int sample_rate = 0;
+ long write_phase = 0;
#line 27 "delay_1898.xml"
sample_rate = s_rate;
@@ -462,11 +462,11 @@ static LADSPA_Handle instantiateDelay_l(
unsigned long s_rate) {
Delay_l *plugin_data = (Delay_l *)malloc(sizeof(Delay_l));
LADSPA_Data *buffer = NULL;
- unsigned int buffer_mask;
- LADSPA_Data delay_samples;
- LADSPA_Data last_delay_time;
- unsigned int sample_rate;
- long write_phase;
+ unsigned int buffer_mask = 0;
+ LADSPA_Data delay_samples = 0;
+ LADSPA_Data last_delay_time = 0;
+ unsigned int sample_rate = 0;
+ long write_phase = 0;
#line 27 "delay_1898.xml"
sample_rate = s_rate;
@@ -713,11 +713,11 @@ static LADSPA_Handle instantiateDelay_c(
unsigned long s_rate) {
Delay_c *plugin_data = (Delay_c *)malloc(sizeof(Delay_c));
LADSPA_Data *buffer = NULL;
- unsigned int buffer_mask;
- LADSPA_Data delay_samples;
- LADSPA_Data last_delay_time;
- unsigned int sample_rate;
- long write_phase;
+ unsigned int buffer_mask = 0;
+ LADSPA_Data delay_samples = 0;
+ LADSPA_Data last_delay_time = 0;
+ unsigned int sample_rate = 0;
+ long write_phase = 0;
#line 27 "delay_1898.xml"
sample_rate = s_rate;
--- allpass_1895.c-dist 2006-01-12 16:20:41.000000000 +0100
+++ allpass_1895.c 2006-01-12 16:21:38.000000000 +0100
@@ -224,13 +224,13 @@ static LADSPA_Handle instantiateAllpass_
unsigned long s_rate) {
Allpass_n *plugin_data = (Allpass_n *)malloc(sizeof(Allpass_n));
LADSPA_Data *buffer = NULL;
- unsigned int buffer_mask;
- LADSPA_Data delay_samples;
- LADSPA_Data feedback;
- LADSPA_Data last_decay_time;
- LADSPA_Data last_delay_time;
+ unsigned int buffer_mask = 0;
+ LADSPA_Data delay_samples = 0;
+ LADSPA_Data feedback = 0;
+ LADSPA_Data last_decay_time = 0;
+ LADSPA_Data last_delay_time = 0;
unsigned int sample_rate;
- long write_phase;
+ long write_phase = 0;
#line 44 "allpass_1895.xml"
sample_rate = s_rate;
@@ -606,13 +606,13 @@ static LADSPA_Handle instantiateAllpass_
unsigned long s_rate) {
Allpass_l *plugin_data = (Allpass_l *)malloc(sizeof(Allpass_l));
LADSPA_Data *buffer = NULL;
- unsigned int buffer_mask;
- LADSPA_Data delay_samples;
- LADSPA_Data feedback;
- LADSPA_Data last_decay_time;
- LADSPA_Data last_delay_time;
+ unsigned int buffer_mask = 0;
+ LADSPA_Data delay_samples = 0;
+ LADSPA_Data feedback = 0;
+ LADSPA_Data last_decay_time = 0;
+ LADSPA_Data last_delay_time = 0;
unsigned int sample_rate;
- long write_phase;
+ long write_phase = 0;
#line 44 "allpass_1895.xml"
sample_rate = s_rate;
@@ -898,13 +898,13 @@ static LADSPA_Handle instantiateAllpass_
unsigned long s_rate) {
Allpass_c *plugin_data = (Allpass_c *)malloc(sizeof(Allpass_c));
LADSPA_Data *buffer = NULL;
- unsigned int buffer_mask;
- LADSPA_Data delay_samples;
- LADSPA_Data feedback;
- LADSPA_Data last_decay_time;
- LADSPA_Data last_delay_time;
+ unsigned int buffer_mask = 0;
+ LADSPA_Data delay_samples = 0;
+ LADSPA_Data feedback = 0;
+ LADSPA_Data last_decay_time = 0;
+ LADSPA_Data last_delay_time = 0;
unsigned int sample_rate;
- long write_phase;
+ long write_phase = 0;
#line 44 "allpass_1895.xml"
sample_rate = s_rate;
--- comb_1887.c-dist 2006-01-12 16:21:47.000000000 +0100
+++ comb_1887.c 2006-01-12 16:22:27.000000000 +0100
@@ -221,13 +221,13 @@ static LADSPA_Handle instantiateComb_n(
unsigned long s_rate) {
Comb_n *plugin_data = (Comb_n *)malloc(sizeof(Comb_n));
LADSPA_Data *buffer = NULL;
- unsigned int buffer_mask;
- LADSPA_Data delay_samples;
- LADSPA_Data feedback;
- LADSPA_Data last_decay_time;
- LADSPA_Data last_delay_time;
+ unsigned int buffer_mask = 0;
+ LADSPA_Data delay_samples = 0;
+ LADSPA_Data feedback = 0;
+ LADSPA_Data last_decay_time = 0;
+ LADSPA_Data last_delay_time = 0;
unsigned int sample_rate;
- long write_phase;
+ long write_phase = 0;
#line 41 "comb_1887.xml"
sample_rate = s_rate;
@@ -597,13 +597,13 @@ static LADSPA_Handle instantiateComb_l(
unsigned long s_rate) {
Comb_l *plugin_data = (Comb_l *)malloc(sizeof(Comb_l));
LADSPA_Data *buffer = NULL;
- unsigned int buffer_mask;
- LADSPA_Data delay_samples;
- LADSPA_Data feedback;
- LADSPA_Data last_decay_time;
- LADSPA_Data last_delay_time;
+ unsigned int buffer_mask = 0;
+ LADSPA_Data delay_samples = 0;
+ LADSPA_Data feedback = 0;
+ LADSPA_Data last_decay_time = 0;
+ LADSPA_Data last_delay_time = 0;
unsigned int sample_rate;
- long write_phase;
+ long write_phase = 0;
#line 41 "comb_1887.xml"
sample_rate = s_rate;
@@ -889,13 +889,13 @@ static LADSPA_Handle instantiateComb_c(
unsigned long s_rate) {
Comb_c *plugin_data = (Comb_c *)malloc(sizeof(Comb_c));
LADSPA_Data *buffer = NULL;
- unsigned int buffer_mask;
- LADSPA_Data delay_samples;
- LADSPA_Data feedback;
- LADSPA_Data last_decay_time;
- LADSPA_Data last_delay_time;
+ unsigned int buffer_mask = 0;
+ LADSPA_Data delay_samples = 0;
+ LADSPA_Data feedback = 0;
+ LADSPA_Data last_decay_time = 0;
+ LADSPA_Data last_delay_time = 0;
unsigned int sample_rate;
- long write_phase;
+ long write_phase = 0;
#line 41 "comb_1887.xml"
sample_rate = s_rate;
--- bandpass_iir_1892.c-dist 2006-01-12 16:19:57.000000000 +0100
+++ bandpass_iir_1892.c 2006-01-12 16:20:12.000000000 +0100
@@ -144,10 +144,10 @@ static LADSPA_Handle instantiateBandpass
iir_stage_t*first = NULL;
iir_stage_t*gt = NULL;
iirf_t*iirf = NULL;
- float lfc;
+ float lfc = 0;
long sample_rate;
iir_stage_t*second = NULL;
- float ufc;
+ float ufc = 0;
#line 24 "bandpass_iir_1892.xml"
sample_rate = s_rate;