Opened 17 years ago
Closed 17 years ago
#7590 closed defect (fixed)
programinfo needs to init isVideo when loading from DB
| Reported by: | Owned by: | danielk | |
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | MythTV - General | Version: | unknown |
| Severity: | low | Keywords: | |
| Cc: | Ticket locked: | no |
Description
ProgramInfo::ProgramInfo(const MSqlQuery &query, ...)
Does not initialize isVideo. This causes ProgramInfo::ToMap() to randomly fill in starttime, endtime, startdate, etc., incorrectly.
Trivial patch attached.
Attachments (1)
Change History (3)
by , 17 years ago
| Attachment: | programinfo-isVideo.patch added |
|---|
comment:1 by , 17 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
(In [22854]) Fixes #7590. Initialize all ProgramInfo members in ctors.
This fixes the uninitialized variable John discovered, plus a couple other instances. It also reorders the clone function so as to make it easier to verify it in the future.
Note:
See TracTickets
for help on using tickets.

Initialize isVideo in ProgramInfo constructor from MSqlQuery