Index: example/HelloWorld.cpp |
diff --git a/example/HelloWorld.cpp b/example/HelloWorld.cpp |
index 6833a33828ec9e44d43d66b4ad3da06fe75ae537..1cc18fdc8dd92d1ba19edd51082bc01348be0409 100644 |
--- a/example/HelloWorld.cpp |
+++ b/example/HelloWorld.cpp |
@@ -157,7 +157,7 @@ void HelloWorldWindow::draw(SkCanvas* canvas) { |
if (kRaster_DeviceType == fType) { |
// need to send the raster bits to the (gpu) window |
SkImage* snap = fSurface->newImageSnapshot(); |
- size_t rowBytes; |
+ size_t rowBytes = 0; |
SkImageInfo info; |
const void* pixels = snap->peekPixels(&info, &rowBytes); |
fRenderTarget->writePixels(0, 0, snap->width(), snap->height(), |