mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-24 20:24:16 +00:00
CID: 1294518 remove chance for divide by 0
This commit is contained in:
1 parent
b39c3058ee
commit
acec23d8c8
1 file changed
+1
-1
@@ -1937,7 +1937,7 @@ static void check_jb_sync(switch_core_session_t *session)
|
||||
|
||||
tmp = atol(var);
|
||||
|
||||
if (tmp > -50 && tmp < 10000) {
|
||||
if (tmp && tmp > -50 && tmp < 10000) {
|
||||
jb_sync_msec = tmp;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user