Menu

#263 eap_types/md5/md5.c:169: bad call to memset ?

2.0.x (Release)
open
nobody
None
5
2014-11-17
2014-11-17
dcb
No

eap_types/md5/md5.c:169:23: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]

memset(ctx, 0, sizeof(ctx));    /* In case it's sensitive */

Maybe better code

memset(ctx, 0, sizeof(*ctx));    /* In case it's sensitive */

Discussion


Log in to post a comment.

MongoDB Logo MongoDB