mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-04 04:52:47 -05:00
Fix tree corruption in the "really easy" case on deletion
[originally from svn r632]
This commit is contained in:
@ -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! */
|
||||||
|
Reference in New Issue
Block a user