Bug 695968: Fix use of uninitialized memory in nsLookAndFeel::NativeGetColor. r=roc

This commit is contained in:
Josh Aas 2011-10-20 10:46:45 -04:00
parent 0e373838c9
commit 4624984f4e

View File

@ -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;
}