Skip to content

Commit

Permalink
Fix possible uninitialized reads in ScraperUrl.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Hill committed Aug 29, 2012
1 parent f830e63 commit 62f0a06
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xbmc/utils/ScraperUrl.cpp
Expand Up @@ -157,7 +157,11 @@ const CScraperUrl::SUrlEntry CScraperUrl::GetFirstThumb() const
if (iter->m_type == URL_TYPE_GENERAL)
return *iter;
}

SUrlEntry result;
result.m_type = URL_TYPE_GENERAL;
result.m_post = false;
result.m_isgz = false;
result.m_season = -1;
return result;
}
Expand All @@ -169,7 +173,11 @@ const CScraperUrl::SUrlEntry CScraperUrl::GetSeasonThumb(int season) const
if (iter->m_type == URL_TYPE_SEASON && iter->m_season == season)
return *iter;
}

SUrlEntry result;
result.m_type = URL_TYPE_GENERAL;
result.m_post = false;
result.m_isgz = false;
result.m_season = -1;
return result;
}
Expand Down

0 comments on commit 62f0a06

Please sign in to comment.