mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-05 02:02:01 +00:00
[core] scan-build: Access to field 'microseconds_per_packet' results in a dereference of a null pointer
This commit is contained in:
parent
b067a7ccbd
commit
87f78e2974
@ -2678,7 +2678,13 @@ static void switch_loadable_module_sort_codecs(const switch_codec_implementation
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (i = 0; i < arraylen; i++) {
|
for (i = 0; i < arraylen; i++) {
|
||||||
int this_ptime = array[i]->microseconds_per_packet / 1000;
|
int this_ptime;
|
||||||
|
|
||||||
|
if (!array[i]) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
this_ptime = array[i]->microseconds_per_packet / 1000;
|
||||||
|
|
||||||
if (!strcasecmp(array[i]->iananame, "ilbc")) {
|
if (!strcasecmp(array[i]->iananame, "ilbc")) {
|
||||||
this_ptime = 20;
|
this_ptime = 20;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user