]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[spandsp] scan-build: The left operand of '>' is a garbage value - super_tone_chunk() 340/head
authorDragos Oancea <dragos@signalwire.com>
Wed, 12 Feb 2020 10:30:20 +0000 (10:30 +0000)
committerDragos Oancea <dragos@signalwire.com>
Wed, 12 Feb 2020 10:30:20 +0000 (10:30 +0000)
libs/spandsp/src/super_tone_rx.c

index 2d54361da1672a27d1d934ff59521b3ffee9c65f..7ae5f636d34870c6f8ab3d9e8d3fd9c0d224478d 100644 (file)
@@ -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++)