Permalink
Browse files

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

…ppcheck
  • Loading branch information...
1 parent d613b99 commit ba8676152de699b999072c8fd9ecb2dcbf19ca67 @stuartm stuartm committed May 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythupnp/servicehost.cpp
@@ -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
{

0 comments on commit ba86761

Please sign in to comment.