Opened 18 years ago
Closed 18 years ago
#4848 closed defect (fixed)
remove useless null check of chanInfo
| Reported by: | Owned by: | Isaac Richards | |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.22 |
| Component: | mythtv | Version: | 0.21-fixes |
| Severity: | low | Keywords: | |
| Cc: | Ticket locked: | no |
Description
In Scheduler::AddNotListed, the for loop checks after it is dereferenced. Since it is just about guaranteed that p is valid already the check is useless.
Attachments (1)
Change History (4)
by , 18 years ago
| Attachment: | programs_mythbackend_scheduler.cpp-fix-null-check-too-late.patch added |
|---|
comment:1 by , 18 years ago
The reference to chanInfo in the summary is bogus. I confused it with my next patch. The check is for pointer p.
comment:2 by , 18 years ago
| Milestone: | 0.21 → 0.22 |
|---|
Note:
See TracTickets
for help on using tickets.

remove useless null check of p