mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1158772 - fix non-idiomatic memset call in nsDeque.cpp; r=erahm
Coverty complains that we're using sizeof(mData) here instead of sizeof(*mData). They're equivalent for all the architectures we care about, but go ahead and tidy up the syntax to silence the static analyzer.
This commit is contained in:
parent
08c48e40ef
commit
050302155b
@ -135,7 +135,7 @@ void
|
||||
nsDeque::Empty()
|
||||
{
|
||||
if (mSize && mData) {
|
||||
memset(mData, 0, mCapacity * sizeof(mData));
|
||||
memset(mData, 0, mCapacity * sizeof(*mData));
|
||||
}
|
||||
mSize = 0;
|
||||
mOrigin = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user