fix CID1201428 Explicit null dereferenced

This commit is contained in:
Boris Faure 2014-04-12 14:59:12 +02:00
parent 42599a47b9
commit 3bc68b99bb
1 changed files with 1 additions and 2 deletions

View File

@ -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");