Fix an issue scanbuild found by making the function readable
Review Request #696 — Created June 1, 2021 and submitted — Latest diff uploaded
Fix an issue scanbuild found by making the function readable
Ran scanbuild and verified the error was fixed.