[core] Fix scan-build 14 in port allocator
This commit is contained in:
parent
ee62332ced
commit
41bc763d80
|
@ -150,7 +150,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_port_allocator_request_port(switch_c
|
||||||
switch_mutex_lock(alloc->mutex);
|
switch_mutex_lock(alloc->mutex);
|
||||||
srand((unsigned) ((unsigned) (intptr_t) port_ptr + (unsigned) (intptr_t) switch_thread_self() + switch_micro_time_now()));
|
srand((unsigned) ((unsigned) (intptr_t) port_ptr + (unsigned) (intptr_t) switch_thread_self() + switch_micro_time_now()));
|
||||||
|
|
||||||
while (alloc->track_used < alloc->track_len) {
|
while (alloc->track_len && alloc->track_used < alloc->track_len) {
|
||||||
uint32_t index;
|
uint32_t index;
|
||||||
uint32_t tries = 0;
|
uint32_t tries = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue