Skip to content

Commit

Permalink
Fix initialisation of arrays in MethodInfo::Invoke(). Identified by C…
Browse files Browse the repository at this point in the history
…ppcheck
  • Loading branch information
stuartm committed May 20, 2012
1 parent d613b99 commit ba86761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythupnp/servicehost.cpp
Expand Up @@ -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
{
Expand Down

0 comments on commit ba86761

Please sign in to comment.