discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=fd0a5bc93471d68be463a78dd272c8268a06e7cc

commit fd0a5bc93471d68be463a78dd272c8268a06e7cc
Author: Mike Blumenkrantz <[email protected]>
Date:   Mon Aug 4 18:00:08 2014 -0400

    add silent null check to e_pixmap_is_x()
---
 src/bin/e_pixmap.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/e_pixmap.h b/src/bin/e_pixmap.h
index 100e68f..b54dd2b 100644
--- a/src/bin/e_pixmap.h
+++ b/src/bin/e_pixmap.h
@@ -46,7 +46,7 @@ EAPI Eina_Bool e_pixmap_image_draw(E_Pixmap *cp, const 
Eina_Rectangle *r);
 static inline Eina_Bool
 e_pixmap_is_x(const E_Pixmap *cp)
 {
-   return e_pixmap_type_get(cp) == E_PIXMAP_TYPE_X;
+   return cp && e_pixmap_type_get(cp) == E_PIXMAP_TYPE_X;
 }
 
 # endif

-- 


Reply via email to