mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-22 04:31:15 +00:00
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:
parent
72b8adfd82
commit
546323185b
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue