CID: 1294518 remove chance for divide by 0

This commit is contained in:
William King 2015-04-16 11:24:38 -07:00 committed by Michael Jerris
parent b39c3058ee
commit acec23d8c8
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}