mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-03 09:21:29 +00:00
Merge pull request #306 from dragos-oancea/spandsp-super_tone_rx-div_by_zero
[spandsp] scan-build: Division by zero - test_cadence()
This commit is contained in:
commit
dbceb95b1a
@ -170,6 +170,7 @@ static int test_cadence(super_tone_rx_segment_t *pattern,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (steps)
|
||||||
j = (rotation + steps - 1)%steps;
|
j = (rotation + steps - 1)%steps;
|
||||||
if (pattern[j].f1 != test[9].f1 || pattern[j].f2 != test[9].f2)
|
if (pattern[j].f1 != test[9].f1 || pattern[j].f2 != test[9].f2)
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user