summaryrefslogtreecommitdiffstats
path: root/webkit/api/src/WebImageSkia.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/api/src/WebImageSkia.cpp')
-rw-r--r--webkit/api/src/WebImageSkia.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/api/src/WebImageSkia.cpp b/webkit/api/src/WebImageSkia.cpp
index 0bba7ae..3d684a7 100644
--- a/webkit/api/src/WebImageSkia.cpp
+++ b/webkit/api/src/WebImageSkia.cpp
@@ -56,7 +56,7 @@ WebImage WebImage::fromData(const WebData& data, const WebSize& desiredSize)
// Pick the frame closest to |desiredSize|'s area without being smaller,
// which has the highest bit depth.
const size_t frameCount = source.frameCount();
- size_t index;
+ size_t index = 0; // Default to first frame if none are large enough.
int frameAreaAtIndex;
for (size_t i = 0; i < frameCount; ++i) {
const IntSize frameSize = source.frameSizeAtIndex(i);