From 1d3fcd6864f3ca33184db5324db420f7f8b097f9 Mon Sep 17 00:00:00 2001 From: Dragos Oancea Date: Thu, 20 Feb 2020 09:57:12 +0000 Subject: [PATCH] [spandsp] scan-build: Array subscript is undefined - test_cadence() --- libs/spandsp/src/super_tone_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {