fix bug detected by static analysis tool 27/141627/1
authorJuyeon Lee <juyeonne.lee@samsung.com>
Tue, 1 Aug 2017 07:08:23 +0000 (16:08 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Tue, 1 Aug 2017 07:09:52 +0000 (16:09 +0900)
Change-Id: Iceeb3e3a48565cd043a9f8fcd6e4f348bdd037e9

src/e_mod_ivi_home.c

index fbda719..24a3ec9 100644 (file)
@@ -221,6 +221,7 @@ _ivi_home_cb_hook_client_new(void *d EINA_UNUSED, E_Client *ec)
    if (ic) return;
 
    ic = E_NEW(IVI_Home_Client, 1);
+   if (!ic) return;
    ic->ec = ec;
 
    eina_hash_add(hash_clients, &ec, ic);