billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=3bc68b99bb69cee5c510e581033e22b5bea78407

commit 3bc68b99bb69cee5c510e581033e22b5bea78407
Author: Boris Faure <bill...@gmail.com>
Date:   Sat Apr 12 14:59:12 2014 +0200

    fix CID1201428 Explicit null dereferenced
---
 src/bin/app_server.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/bin/app_server.c b/src/bin/app_server.c
index 74ced96..a8dafd3 100644
--- a/src/bin/app_server.c
+++ b/src/bin/app_server.c
@@ -339,8 +339,7 @@ _app_server_create_view_cb(Elm_App_Server *server, const 
Eina_Value *args EINA_U
    Eina_List **wins = NULL;
 
    eo_do(server, wins = eo_key_data_get("wins"));
-   wn = eina_list_data_get(*wins);
-   if (!wn)
+   if (!wins || !(wn = eina_list_data_get(*wins)))
      {
         ERR("There is no window open");
         *error_name = eina_stringshare_add("There is no window open");

-- 


Reply via email to