mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
Fix tree corruption in the "really easy" case on deletion
[originally from svn r632]
This commit is contained in:
parent
3e4619b479
commit
c9557bfc40
@ -494,7 +494,7 @@ void del234(tree234 *t, void *e) {
|
|||||||
*/
|
*/
|
||||||
int i;
|
int i;
|
||||||
LOG((" case 1\n"));
|
LOG((" case 1\n"));
|
||||||
for (i = ei; i < 3 && n->elems[i+1]; i++)
|
for (i = ei; i < 2 && n->elems[i+1]; i++)
|
||||||
n->elems[i] = n->elems[i+1];
|
n->elems[i] = n->elems[i+1];
|
||||||
n->elems[i] = NULL;
|
n->elems[i] = NULL;
|
||||||
return; /* finished! */
|
return; /* finished! */
|
||||||
|
Loading…
Reference in New Issue
Block a user