From c7313606f5e4059091a4e2419edaada6348f8b26 Mon Sep 17 00:00:00 2001 From: Allofich Date: Mon, 7 Nov 2016 00:28:22 +0900 Subject: [PATCH] Fix dereference of null pointer warning --- apps/essimporter/importer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/essimporter/importer.cpp b/apps/essimporter/importer.cpp index 1c255c56f..a420d08da 100644 --- a/apps/essimporter/importer.cpp +++ b/apps/essimporter/importer.cpp @@ -51,6 +51,7 @@ namespace { for (int x=0; x<128; ++x) { + assert(image->data(x,y)); *(image->data(x,y)+2) = *it++; *(image->data(x,y)+1) = *it++; *image->data(x,y) = *it++;