Index: src/images/SkImageDecoder_libgif.cpp |
diff --git a/src/images/SkImageDecoder_libgif.cpp b/src/images/SkImageDecoder_libgif.cpp |
index 0c8461f893e5f3e938ac3e1c1fb371ae6bf000d9..745f4e11f11116fbd876318bfbe4131de8efee0d 100644 |
--- a/src/images/SkImageDecoder_libgif.cpp |
+++ b/src/images/SkImageDecoder_libgif.cpp |
@@ -194,7 +194,7 @@ static bool skip_src_rows(GifFileType* gif, uint8_t* dst, int width, int rowsToS |
static void sanitize_indexed_bitmap(SkBitmap* bm) { |
if ((kIndex_8_SkColorType == bm->colorType()) && !(bm->empty())) { |
SkAutoLockPixels alp(*bm); |
- if (NULL != bm->getPixels()) { |
+ if (bm->getPixels()) { |
SkColorTable* ct = bm->getColorTable(); // Index8 must have it. |
SkASSERT(ct != NULL); |
uint32_t count = ct->count(); |