From: Dragos Oancea Date: Wed, 12 Feb 2020 10:30:20 +0000 (+0000) Subject: [spandsp] scan-build: The left operand of '>' is a garbage value - super_tone_chunk() X-Git-Tag: v1.10.3^2~189^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F340%2Fhead;p=thirdparty%2Ffreeswitch.git [spandsp] scan-build: The left operand of '>' is a garbage value - super_tone_chunk() --- diff --git a/libs/spandsp/src/super_tone_rx.c b/libs/spandsp/src/super_tone_rx.c index 2d54361da1..7ae5f636d3 100644 --- a/libs/spandsp/src/super_tone_rx.c +++ b/libs/spandsp/src/super_tone_rx.c @@ -315,9 +315,9 @@ static void super_tone_chunk(super_tone_rx_state_t *s) int k1; int k2; #if defined(SPANDSP_USE_FIXED_POINT) - int32_t res[SUPER_TONE_BINS/2]; + int32_t res[SUPER_TONE_BINS/2] = {0}; #else - float res[SUPER_TONE_BINS/2]; + float res[SUPER_TONE_BINS/2] = {0}; #endif for (i = 0; i < s->desc->monitored_frequencies; i++)