Fix null dereference issue

Summary:
@Fix
possible null dereference issue while referencing cs2->id. So added a condition
to check it

Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com>

Reviewers: zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3309
This commit is contained in:
Vivek Ellur 2015-11-10 12:26:48 -05:00 committed by Mike Blumenkrantz
parent 54a613eda9
commit dbfa9682bb
1 changed files with 5 additions and 2 deletions

View File

@ -390,8 +390,11 @@ _cb_rel_to_set(void *data, Evas_Object *obj, void *event)
if (it == event)
{
E_Config_Randr2_Screen *cs2 = _config_screen_n_find(cfdata, i);
printf("find cs = %p\n", cs2);
printf("cs id = %s\n", cs2->id);
if (cs2)
{
printf("find cs = %p\n", cs2);
printf("cs id = %s\n", cs2->id);
}
if (cs2 == cs) return;
if (cs2)
{