Skip to content

Commit

Permalink
initialize variable in the constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
kfb77 committed Aug 9, 2020
1 parent daa043d commit 542d6f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ffmpeg.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ class FFmpegThread : public cThread {

private:
cCondWait cw;
bool touch;
bool touch = false;
int targetChannel;
int vOption;
int vOption = 0;
std::string session;
};

Expand All @@ -32,7 +32,7 @@ class FFmpegThread : public cThread {
class cPipe2 {
private:
pid_t pid;
bool terminated;
bool terminated = false;
FILE *f;
public:
cPipe2(void);
Expand Down
6 changes: 3 additions & 3 deletions md5.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ class md5
private:
uint4 m_State[4];
uint4 m_Count[2];
uchar m_Buffer[64];
uchar m_Digest[16];
uchar m_Finalized;
uchar m_Buffer[64] = {0};
uchar m_Digest[16] = {0};
uchar m_Finalized = 0;

};
2 changes: 1 addition & 1 deletion timers.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ namespace vdrlive {
TimerList m_updateTimers;
ErrorList m_failedUpdates;
cCondVar m_updateWait;
bool m_reloadTimers;
bool m_reloadTimers = false;

void DoUpdateTimers();
void DoInsertTimer( timerStruct& timerData );
Expand Down

0 comments on commit 542d6f5

Please sign in to comment.