melib: correct out of bounds access

pull/234/head
Manos Pitsidianakis 5 years ago
parent c6674a294d
commit 03317d74ca
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

@ -695,7 +695,7 @@ impl Threads {
*/
let mut c_idx = 0;
loop {
if c_idx == thread_nodes[&idx].children.len() {
if c_idx >= thread_nodes[&idx].children.len() {
break;
}
let c = thread_nodes[&idx].children[c_idx];

Loading…
Cancel
Save