]> cloud.milkyroute.net Git - dolphin.git/commit
Fix potential nullptr de-reference
authorFelix Ernst <fe.a.ernst@gmail.com>
Sun, 8 Jan 2023 14:07:16 +0000 (15:07 +0100)
committerFelix Ernst <fe.a.ernst@gmail.com>
Sun, 8 Jan 2023 14:07:16 +0000 (15:07 +0100)
commiteede5747237ac736340b01ad5b913f479011ddff
tree1c3076d7438764cdeec82f257a1153961ac0015e
parent1ea868f2f8e328ab09487ed1f7e0ba053adcf552
Fix potential nullptr de-reference

The `break` that is replaced by a `return` here would only break
out of the innermost while loop so the std::vector::end could still
become accessed after that. By returning here we completely exit
out of both nested loops and therefore don't access the
std::vector::end.
src/selectionmode/backgroundcolorhelper.cpp