From 5a06d1211554673317ca948c41610ed140190fae Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Tue, 5 Oct 2004 08:39:20 +0000 Subject: [PATCH] Fix un-initialised variable in SFC_SET_SCALE_FLOAT_INT_READ. --- src/sndfile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sndfile.c b/src/sndfile.c index b8eea824..d5c3151e 100644 --- a/src/sndfile.c +++ b/src/sndfile.c @@ -772,7 +772,8 @@ sf_command (SNDFILE *sndfile, int command, void *data, int datasize) return psf->norm_double ; case SFC_SET_SCALE_FLOAT_INT_READ : - { int old_value ; + { int old_value = psf->float_int_mult ; + psf->float_int_mult = (datasize != 0) ? SF_TRUE : SF_FALSE ; if (psf->float_int_mult && psf->float_max == 0.0) psf->float_max = psf_calc_signal_max (psf, SF_FALSE) ;