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:
parent
54a613eda9
commit
dbfa9682bb
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue