Skip to content

Commit

Permalink
[utils] Add missing const null check to CVariant move assignment oper…
Browse files Browse the repository at this point in the history
…ator
  • Loading branch information
garbear committed Oct 14, 2015
1 parent e3a2147 commit 66e8acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/utils/Variant.cpp
Expand Up @@ -611,7 +611,7 @@ CVariant &CVariant::operator=(const CVariant &rhs)

CVariant& CVariant::operator=(CVariant&& rhs)
{
if (this == &rhs)
if (m_type == VariantTypeConstNull || this == &rhs)
return *this;

//Make sure that if we're moved into we don't leak any pointers
Expand Down

0 comments on commit 66e8acd

Please sign in to comment.