Permalink
Browse files

Silence warning about possible null pointer dereferences in TVRec::Cr…

…eateLiveTVRingBuffer() and TVRec::SwitchLiveTVRingBuffer(). Coverity 700405
  • Loading branch information...
stuartm committed Dec 18, 2012
1 parent 5c9fe65 commit 0fdb6fb2acc8b742a53002c6b6c03ee6f2b5376f
Showing with 4 additions and 2 deletions.
  1. +4 −2 mythtv/libs/libmythtv/tv_rec.cpp
@@ -4476,7 +4476,8 @@ bool TVRec::CreateLiveTVRingBuffer(const QString & channum)
QString inputName;
int inputID = -1;
if (!channel->CheckChannel(channum, inputName))
if (!channel ||
!channel->CheckChannel(channum, inputName))
{
ChangeState(kState_None);
return false;
@@ -4535,7 +4536,8 @@ bool TVRec::SwitchLiveTVRingBuffer(const QString & channum,
QString inputName;
int inputID = -1;
if (!channel->CheckChannel(channum, inputName))
if (!channel ||
!channel->CheckChannel(channum, inputName))
{
ChangeState(kState_None);
return false;

0 comments on commit 0fdb6fb

Please sign in to comment.