win: fix a possible crash in elm_win_add 15/59115/1
authorYoungbok Shin <youngb.shin@samsung.com>
Fri, 5 Feb 2016 07:15:29 +0000 (08:15 +0100)
committerYoungbok Shin <youngb.shin@samsung.com>
Thu, 11 Feb 2016 01:40:24 +0000 (10:40 +0900)
commitf0289420716ed266d2371ed839aa750979385aa9
treeab21b635850f77c62e196c60fdfae95c3dd17071
parentcc449687cadea875cfa8c45f0997f67ac8e25d4a
win: fix a possible crash in elm_win_add

Summary:
The enginelist[0] can be NULL in some very rare cases.
Then enginelist[0] will be used for strcmp and it make a crash.
@fix

Test Plan: N/A

Reviewers: raster, cedric, woohyun, jypark, jaehwan

Differential Revision: https://phab.enlightenment.org/D3649

Change-Id: I72c33e30d52ea4e77d550a06fb4c7e1b7329e819
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/elm_win.c