Skip to content

Commit

Permalink
VideoMetadata: fix Coverity ID 700888 Uninitialized pointer field
Browse files Browse the repository at this point in the history
In VideoMetadata::SortKey::SortKey(): A pointer field is not initialized in
the constructor (false positive because it's a copy constructor so the field
will be copied anyway)
  • Loading branch information
Paul Harrison committed Jun 2, 2013
1 parent 8e4d415 commit 9dac848
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythmetadata/videometadata.cpp
Expand Up @@ -45,7 +45,7 @@ static bool operator<(const SortData &lhs, const SortData &rhs)
return ret < 0;
}

VideoMetadata::SortKey::SortKey() : m_sd(0)
VideoMetadata::SortKey::SortKey() : m_sd(NULL)
{
}

Expand All @@ -54,7 +54,7 @@ VideoMetadata::SortKey::SortKey(const SortData &data)
m_sd = new SortData(data);
}

VideoMetadata::SortKey::SortKey(const SortKey &other)
VideoMetadata::SortKey::SortKey(const SortKey &other) : m_sd(NULL)
{
*this = other;
}
Expand Down

0 comments on commit 9dac848

Please sign in to comment.