Fix misuses of memset
authorAndreas Schwab <schwab@suse.de>
Tue, 26 Mar 2013 09:11:04 +0000 (10:11 +0100)
committerAndreas Schwab <schwab@suse.de>
Tue, 26 Mar 2013 09:11:04 +0000 (10:11 +0100)
commit4fdcd20f51b515107a285968f3b0c1f6c68801d5
treeda090c465cfac396b3010ca28bf46a1b6655f82d
parent646a92ed488b5aaddaacbb825a03c1f4cbfc1d9e
Fix misuses of memset

src/md5.c: In function 'sat_MD5_Final':
src/md5.c:269:23: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]
  memset(ctx, 0, sizeof(ctx));
                       ^
examples/solv.c: In function 'read_repos':
examples/solv.c:1616:27: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to remove the addressof? [-Werror=sizeof-pointer-memaccess]
     memset(&stb, 0, sizeof(&stb));
                           ^
examples/solv.c
src/md5.c