1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38: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:
Simon Tatham 2001-04-16 21:24:38 +00:00
parent 03c9b6107b
commit 7cd4f98ef6

View File

@ -90,6 +90,8 @@ void freetree234(tree234 *t) {
static int countnode234(node234 *n) {
int count = 0;
int i;
if (!n)
return 0;
for (i = 0; i < 4; i++)
count += n->counts[i];
for (i = 0; i < 3; i++)