Skip to content

Commit

Permalink
Address cppcheck warning. Set some pointers to NULL for when descript…
Browse files Browse the repository at this point in the history
…or parsing fails.
  • Loading branch information
daniel-kristjansson committed Nov 12, 2011
1 parent 47d5296 commit 861b4eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mythtv/libs/libmythtv/mpeg/splicedescriptors.h
Expand Up @@ -161,6 +161,7 @@ class SegmentationDescriptor : SpliceDescriptor
SegmentationDescriptor(const unsigned char *data, int len = 300) :
SpliceDescriptor(data, len, SpliceDescriptorID::segmentation)
{
_ptrs[2] = _ptrs[1] = _ptrs[0] = NULL;
if (_data && !Parse())
_data = NULL;
}
Expand Down

0 comments on commit 861b4eb

Please sign in to comment.