Browse files

Silence cppcheck warning

  • Loading branch information...
1 parent 23ae058 commit 97cfab1a69ede98ecdabfa674362a1070c35e9cf @jyavenard jyavenard committed May 20, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 mythtv/libs/libmythupnp/upnputil.h
View
3 mythtv/libs/libmythupnp/upnputil.h
@@ -93,6 +93,9 @@ inline NameValue::NameValue(const NameValue &nv) :
inline NameValue& NameValue::operator=(const NameValue &nv)
{
+ if (this == &nv)
+ return *this;
+
sName = nv.sName;
sValue = nv.sValue;

0 comments on commit 97cfab1

Please sign in to comment.