mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
CID: 1294518 remove chance for divide by 0
This commit is contained in:
parent
b39c3058ee
commit
acec23d8c8
@ -1937,7 +1937,7 @@ static void check_jb_sync(switch_core_session_t *session)
|
|||||||
|
|
||||||
tmp = atol(var);
|
tmp = atol(var);
|
||||||
|
|
||||||
if (tmp > -50 && tmp < 10000) {
|
if (tmp && tmp > -50 && tmp < 10000) {
|
||||||
jb_sync_msec = tmp;
|
jb_sync_msec = tmp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user