From: Dragos Oancea Date: Thu, 20 Feb 2020 09:57:12 +0000 (+0000) Subject: [spandsp] scan-build: Array subscript is undefined - test_cadence() X-Git-Tag: v1.10.3^2~139^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F393%2Fhead;p=thirdparty%2Ffreeswitch.git [spandsp] scan-build: Array subscript is undefined - test_cadence() --- diff --git a/libs/spandsp/src/super_tone_rx.c b/libs/spandsp/src/super_tone_rx.c index 7ae5f636d3..48dc02e693 100644 --- a/libs/spandsp/src/super_tone_rx.c +++ b/libs/spandsp/src/super_tone_rx.c @@ -147,7 +147,7 @@ static int test_cadence(super_tone_rx_segment_t *pattern, int rotation) { int i; - int j; + int j = 0; if (rotation >= 0) {