billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=651cbfa08c502f982612a6840f86a23e8a3f0191

commit 651cbfa08c502f982612a6840f86a23e8a3f0191
Author: Boris Faure <bill...@gmail.com>
Date:   Thu Jul 3 20:56:36 2014 +0200

    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 f0e2bd8..a9797d4 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;

-- 


Reply via email to