mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-02 13:47:42 +03:00
[REGEX] fix a long standing off-by-one error (found by valgrind-pool)
This commit is contained in:
parent
1aaf8d589f
commit
40f03c4c2c
@ -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…
x
Reference in New Issue
Block a user