mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
countnode234() should politely return 0 when passed NULL. Was
breaking delpos234(empty_tree, 0). [originally from svn r1054]
This commit is contained in:
parent
03c9b6107b
commit
7cd4f98ef6
@ -90,6 +90,8 @@ void freetree234(tree234 *t) {
|
|||||||
static int countnode234(node234 *n) {
|
static int countnode234(node234 *n) {
|
||||||
int count = 0;
|
int count = 0;
|
||||||
int i;
|
int i;
|
||||||
|
if (!n)
|
||||||
|
return 0;
|
||||||
for (i = 0; i < 4; i++)
|
for (i = 0; i < 4; i++)
|
||||||
count += n->counts[i];
|
count += n->counts[i];
|
||||||
for (i = 0; i < 3; i++)
|
for (i = 0; i < 3; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user