mirror of https://github.com/sipwise/rtpengine.git
Currently the function has two cycles (while-outer-cycle and for-inner-cycle). The inner one operates on the given `pp` pointer and can potentially mutate it (the pointer isn't const), hence the outer cycle will continue with a mutated pointer. Instead just use a local scope pointer to manipulate linked list's data. P.S.: the `pp` pointer isn't a double pointer, so unlikely was expected (even by design) to be modified (e.g. its address or what it actually points to). Change-Id: Ia36bcb6fb47e9e72ae25a838f8005ca99f4c591dmaster
parent
2bd4f4d311
commit
a4875c336e
Loading…
Reference in new issue