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 committed by Daniel Gibson
parent 72b8adfd82
commit 546323185b

View file

@ -249,7 +249,7 @@ void MD5_Final( MD5_CTX *ctx, unsigned char digest[16] ) {
MD5_Transform( ctx->state, (unsigned int *) ctx->in );
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 */
}
/*