diff options
Diffstat (limited to '3rdparty/libflac/src/libFLAC/md5.c')
-rw-r--r-- | 3rdparty/libflac/src/libFLAC/md5.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/3rdparty/libflac/src/libFLAC/md5.c b/3rdparty/libflac/src/libFLAC/md5.c index 37cef67bdc8..af350e01d16 100644 --- a/3rdparty/libflac/src/libFLAC/md5.c +++ b/3rdparty/libflac/src/libFLAC/md5.c @@ -1,4 +1,4 @@ -#if HAVE_CONFIG_H +#ifdef HAVE_CONFIG_H # include <config.h> #endif @@ -263,12 +263,12 @@ void FLAC__MD5Final(FLAC__byte digest[16], FLAC__MD5Context *ctx) byteSwap(ctx->buf, 4); memcpy(digest, ctx->buf, 16); - memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ if(0 != ctx->internal_buf) { free(ctx->internal_buf); ctx->internal_buf = 0; ctx->capacity = 0; } + memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */ } /* |