Skip to content
This repository
Browse code

[platinum] - fix shadowed local var

  • Loading branch information...
commit 6567a1709ac25ccb6cdb05e8e5aaaa2b276a0eb2 1 parent 2e7daed
Memphiz authored May 25, 2013
4  lib/libUPnP/Platinum/Source/Core/PltStateVariable.cpp
@@ -215,8 +215,8 @@ PLT_StateVariable::ValidateValue(const char* value)
215 215
                         (const char*)*val,
216 216
                         (const char*)m_Name);
217 217
                     for (unsigned long i=0; i < m_AllowedValues.GetItemCount(); i++) {
218  
-                        NPT_String *val = *m_AllowedValues.GetItem(i);
219  
-                        NPT_LOG_WARNING_1("Allowed: %s", (const char*)*val);
  218
+                        NPT_String *val2 = *m_AllowedValues.GetItem(i);
  219
+                        NPT_LOG_WARNING_1("Allowed: %s", (const char*)*val2);
220 220
                     }
221 221
 #endif
222 222
                     return NPT_ERROR_INVALID_PARAMETERS;

0 notes on commit 6567a17

Please sign in to comment.
Something went wrong with that request. Please try again.