Fix -Wsizeof-pointer-memaccess warnings

argument to 'sizeof' in 'memset' call is the same expression as the
destination; did you mean to dereference it?
This commit is contained in:
dhewg 2011-12-13 17:18:32 +01:00
parent 10e9ef2a52
commit 09ea2ca819
2 changed files with 2 additions and 2 deletions

View file

@ -249,7 +249,7 @@ void MD5_Final( MD5_CTX *ctx, unsigned char digest[16] ) {
MD5_Transform( ctx->state, (unsigned int *) ctx->in ); MD5_Transform( ctx->state, (unsigned int *) ctx->in );
memcpy( digest, ctx->state, 16 ); memcpy( digest, ctx->state, 16 );
memset( ctx, 0, sizeof( ctx ) ); /* In case it's sensitive */ memset( ctx, 0, sizeof( MD5_CTX ) ); /* In case it's sensitive */
} }
/* /*

View file

@ -728,7 +728,7 @@ static void ASE_KeyGEOMOBJECT( const char *token )
else if ( !strcmp( token, "*MESH" ) ) else if ( !strcmp( token, "*MESH" ) )
{ {
ase.currentMesh = &ase.currentObject->mesh; ase.currentMesh = &ase.currentObject->mesh;
memset( ase.currentMesh, 0, sizeof( ase.currentMesh ) ); memset( ase.currentMesh, 0, sizeof( aseMesh_t ) );
ASE_ParseBracedBlock( ASE_KeyMESH ); ASE_ParseBracedBlock( ASE_KeyMESH );
} }