mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 695968: Fix use of uninitialized memory in nsLookAndFeel::NativeGetColor. r=roc
This commit is contained in:
parent
0e373838c9
commit
4624984f4e
@ -457,7 +457,7 @@ public:
|
||||
|
||||
static nscolor GetColor(ColorID aID, nscolor aDefault = NS_RGB(0, 0, 0))
|
||||
{
|
||||
nscolor result;
|
||||
nscolor result = NS_RGB(0, 0, 0);
|
||||
if (NS_FAILED(GetColor(aID, &result))) {
|
||||
return aDefault;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user