Changeset 181568 in webkit
- Timestamp:
- Mar 16, 2015, 11:23:54 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
inspector/InspectorDOMAgent.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r181565 r181568 1 2015-03-16 Brent Fulgham <bfulgham@apple.com> 2 3 Potentially uninitialized Inspector values 4 https://bugs.webkit.org/show_bug.cgi?id=142730 5 6 Reviewed by Joseph Pecoraro. 7 8 * inspector/InspectorDOMAgent.cpp: 9 (WebCore::parseColor): Make sure color values are given an initial value. 10 1 11 2015-03-16 Brady Eidson <beidson@apple.com> 2 12 -
trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp
r180116 r181568 109 109 return Color::transparent; 110 110 111 int r ;112 int g ;113 int b ;111 int r = 0; 112 int g = 0; 113 int b = 0; 114 114 if (!colorObject->getInteger("r", r) || !colorObject->getInteger("g", g) || !colorObject->getInteger("b", b)) 115 115 return Color::transparent; 116 116 117 double a ;117 double a = 1.0; 118 118 if (!colorObject->getDouble("a", a)) 119 119 return Color(r, g, b);
Note:
See TracChangeset
for help on using the changeset viewer.