Opened 13 years ago
Closed 13 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)
Changed 13 years ago by
Attachment: | programs_mythbackend_scheduler.cpp-fix-null-check-too-late.patch added |
---|
comment:1 Changed 13 years ago by
The reference to chanInfo in the summary is bogus. I confused it with my next patch. The check is for pointer p.
comment:2 Changed 13 years ago by
Milestone: | 0.21 → 0.22 |
---|
Note: See
TracTickets for help on using
tickets.
remove useless null check of p