1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

[REGEX] fix a long standing off-by-one error (found by valgrind-pool)

This commit is contained in:
Joe Thornber 2010-08-09 10:58:27 +00:00
parent 52e1564fdd
commit 0ae41c4412

View File

@ -91,10 +91,10 @@ int ttree_insert(struct ttree *tt, unsigned int *key, void *data)
return 0;
}
k = *key++;
if (count)
if (count) {
k = *key++;
c = &((*c)->m);
}
}
}
(*c)->data = data;