1
0
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:
Joe Thornber 2010-08-09 10:58:27 +00:00
parent 1aaf8d589f
commit 40f03c4c2c

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;