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:
parent
52e1564fdd
commit
0ae41c4412
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user