From 9dac8480e3fa8ace22bede1def363617eed2cd24 Mon Sep 17 00:00:00 2001 From: Paul Harrison Date: Sun, 2 Jun 2013 13:29:36 +0100 Subject: [PATCH] VideoMetadata: fix Coverity ID 700888 Uninitialized pointer field 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) --- mythtv/libs/libmythmetadata/videometadata.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mythtv/libs/libmythmetadata/videometadata.cpp b/mythtv/libs/libmythmetadata/videometadata.cpp index af7703a5d7a..b5c647d5070 100644 --- a/mythtv/libs/libmythmetadata/videometadata.cpp +++ b/mythtv/libs/libmythmetadata/videometadata.cpp @@ -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) { } @@ -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; }