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
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)
{