Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix initialisation of arrays in MethodInfo::Invoke(). Identified by C…

…ppcheck
  • Loading branch information...
commit ba8676152de699b999072c8fd9ecb2dcbf19ca67 1 parent d613b99
Stuart Morgan stuartm authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythupnp/servicehost.cpp
4 mythtv/libs/libmythupnp/servicehost.cpp
View
@@ -52,8 +52,8 @@ QVariant MethodInfo::Invoke( Service *pService, const QStringMap &reqParams )
void *param[ _MAX_PARAMS ];
int types[ _MAX_PARAMS ];
- memset( param, 0, sizeof( param ));
- memset( types, 0, sizeof( types ));
+ memset( param, 0, _MAX_PARAMS * sizeof(void *));
+ memset( types, 0, _MAX_PARAMS * sizeof(int));
try
{
Please sign in to comment.
Something went wrong with that request. Please try again.