From 651cbfa08c502f982612a6840f86a23e8a3f0191 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Thu, 3 Jul 2014 20:56:36 +0200 Subject: [PATCH] fix possible segfault detected as CID1224396. --- src/bin/miniview.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/miniview.c b/src/bin/miniview.c index f0e2bd8b..a9797d41 100644 --- a/src/bin/miniview.c +++ b/src/bin/miniview.c @@ -348,7 +348,9 @@ _deferred_renderer(void *data) Termpty *ty; unsigned int colors[512]; - if ((!mv) || (!mv->is_shown) || (!mv->to_render) || (mv->img_h == 0)) + if (!mv) return EINA_FALSE; + + if ((!mv->is_shown) || (!mv->to_render) || (mv->img_h == 0)) { mv->deferred_renderer = NULL; return EINA_FALSE;