instead of initialising prevtf to NULL before the loop in which I
rebase it, I should take out the rebase statement completely since
it's overwritten immediately afterwards!
Spotted by clang-analyzer.
git-svn-id: svn://svn.tartarus.org/sgt/agedu@9394
cda61777-01e9-0310-a592-
d414129be87e
prevbuf[0] = '\0';
tf = triewalk_next(tw, buf);
assert(tf);
- prevtf = NULL; /* placate lint */
while (1) {
int i;
triewalk_rebase(tw, mappedfile);
diff = (const unsigned char *)mappedfile -
(const unsigned char *)oldfile;
- if (prevtf)
- prevtf = (const struct trie_file *)
- (((const unsigned char *)prevtf) + diff);
if (tf)
tf = (const struct trie_file *)
(((const unsigned char *)tf) + diff);