Defects where a variable might not be initialized.
From: Erik Hovland <erik@hovland.org>
---
mythtv/programs/mythbackend/autoexpire.cpp | 5 +++--
mythtv/programs/mythbackend/mainserver.cpp | 3 ++-
mythtv/programs/mythbackend/scheduler.cpp | 4 ++--
3 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/mythtv/programs/mythbackend/autoexpire.cpp b/mythtv/programs/mythbackend/autoexpire.cpp
index ab0eb49..13906f3 100644
a
|
b
|
AutoExpire::AutoExpire(QMap<int, EncoderLink *> *tvList) |
67 | 67 | * \brief Creates AutoExpire class |
68 | 68 | */ |
69 | 69 | AutoExpire::AutoExpire(void) |
| 70 | : encoderList(NULL), |
| 71 | expire_thread(pthread_t()), expire_thread_running(false), |
| 72 | update_thread(pthread_t()) |
70 | 73 | { |
71 | | encoderList = NULL; |
72 | | expire_thread_running = false; |
73 | 74 | Init(); |
74 | 75 | } |
75 | 76 | |
diff --git a/mythtv/programs/mythbackend/mainserver.cpp b/mythtv/programs/mythbackend/mainserver.cpp
index 6012fb6..69a8b39 100644
a
|
b
|
QMutex MainServer::truncate_and_close_lock; |
109 | 109 | class ProcessRequestThread : public QThread |
110 | 110 | { |
111 | 111 | public: |
112 | | ProcessRequestThread(MainServer *ms) { parent = ms; } |
| 112 | ProcessRequestThread(MainServer *ms) |
| 113 | : parent(ms), socket(0), threadlives(false) { parent = ms; } |
113 | 114 | |
114 | 115 | void setup(MythSocket *sock) |
115 | 116 | { |
diff --git a/mythtv/programs/mythbackend/scheduler.cpp b/mythtv/programs/mythbackend/scheduler.cpp
index dd42416..5233f0b 100644
a
|
b
|
void Scheduler::SchedPreserveLiveTV(void) |
3691 | 3691 | // Get the program that will be recording on this channel |
3692 | 3692 | // at record start time, if this LiveTV session continues. |
3693 | 3693 | ProgramInfo *dummy = |
3694 | | dummy->GetProgramAtDateTime(QString::number(in.chanid), |
3695 | | livetvTime, true, 4); |
| 3694 | ProgramInfo::GetProgramAtDateTime(QString::number(in.chanid), |
| 3695 | livetvTime, true, 4); |
3696 | 3696 | if (!dummy) |
3697 | 3697 | continue; |
3698 | 3698 | |