Useless Assignment at editcap.c:269 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
selected (/home/sate/Testcases/c/cve/wireshark-1.2.0/editcap.c)![]() | ||||||
![]() | ||||||
265 | selected(int recno) | |||||
266 | { | |||||
267 | int i = 0; | |||||
268 | ||||||
269 | for (i = 0; i<= max_selected; i++) {
| |||||
270 | ||||||
271 | if (selectfrm[i].inclusive) { | |||||
272 | if (selectfrm[i].first <= recno && selectfrm[i].second >= recno) | |||||
273 | return 1; | |||||
274 | } | |||||
275 | else { | |||||
276 | if (recno == selectfrm[i].first) | |||||
277 | return 1; | |||||
278 | } | |||||
279 | } | |||||
280 | ||||||
281 | return 0; | |||||
282 | ||||||
283 | } | |||||
![]() |