DescriptionFix 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
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88855
Patch Set 1 #Patch Set 2 : . #
Messages
Total messages: 6 (0 generated)
|