Fix two bugs found by a new clang warning I'm currently testing:

/Users/thakis/src/chrome-git/src/base/md5.cc:250:24: error: The sizeof expression in 'memset' has type 'struct Context *', the same type that the first argument has. The sizeof expression should probably have type 'struct Context' instead. [-Werror]
        memset(ctx, 0, sizeof(ctx));    /* In case it's sensitive */
                       ^
1 error generated.

/Users/thakis/src/chrome-git/src/media/video/capture/fake_video_capture_device.cc:75:32: error: The sizeof expression in 'memset' has type 'unsigned char *', the same type that the first argument has. The sizeof expression should probably have type 'unsigned char' instead. [-Werror]
  memset(fake_frame_.get(), 0, sizeof(fake_frame_.get()));
                               ^
1 error generated.

The warning is up for review here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20110613/042719.html

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/7003140

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88855 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: c43e0b331af7e0b9c641fc4932cab99bc88ad829
1 file changed
tree: d2570ef2ce5b3817ba5c6ee13f5c84d4d5e627bc
  1. base/
  2. build/
  3. ipc/
  4. testing/
  5. third_party/