Index: src/image/SkSurface_Base.h |
diff --git a/src/image/SkSurface_Base.h b/src/image/SkSurface_Base.h |
index 2314341f21a7ae8272f99ca1a65f07f84227bf01..e7fa57af0d2b3319f7dc326752904f523e4bb628 100644 |
--- a/src/image/SkSurface_Base.h |
+++ b/src/image/SkSurface_Base.h |
@@ -79,7 +79,7 @@ private: |
SkCanvas* SkSurface_Base::getCachedCanvas() { |
if (NULL == fCachedCanvas) { |
fCachedCanvas = this->onNewCanvas(); |
- if (NULL != fCachedCanvas) { |
+ if (fCachedCanvas) { |
fCachedCanvas->setSurfaceBase(this); |
} |
} |