
Hello Wolfgang,
Am 06.11.2014 13:34, schrieb Wolfgang Denk:
Hello,
cppcheck reports:
[drivers/mtd/ubi/eba.c:1275]: (error) Uninitialized variable: aeb
can you please have a look? Thanks!
I see in drivers/mtd/ubi/eba.c:
1267: ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb) 1268: scan_eba[i][aeb->lnum] = aeb->pnum; 1269: 1270: av = ubi_find_av(ai_fastmap, idx2vol_id(ubi, i)); 1271: if (!av) 1272: continue; 1273: 1274: ubi_rb_for_each_entry(rb, aeb, &av->root, u.rb) 1275: fm_eba[i][aeb->lnum] = aeb->pnum;
Why does cppcheck only report line 1275 not also line 1268 and also 1351? I could not currently see, why this pops up for line 1274 ...
bye, Heiko