summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Ellur <vivek.ellur@samsung.com>2015-11-10 12:26:48 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-11-10 12:26:48 -0500
commitdbfa9682bbc1f0993860d951da85c4b305ee9ae9 (patch)
tree23a4966b5d54394c6d2a2b37acfbe6c53a958427
parent54a613eda97da6060c73212f107d6fa9f32eebd1 (diff)
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
-rw-r--r--src/modules/conf_randr/e_int_config_randr2.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/conf_randr/e_int_config_randr2.c b/src/modules/conf_randr/e_int_config_randr2.c
index 97aa9ebb4..ac9ea88dc 100644
--- a/src/modules/conf_randr/e_int_config_randr2.c
+++ b/src/modules/conf_randr/e_int_config_randr2.c
@@ -390,8 +390,11 @@ _cb_rel_to_set(void *data, Evas_Object *obj, void *event)
390 if (it == event) 390 if (it == event)
391 { 391 {
392 E_Config_Randr2_Screen *cs2 = _config_screen_n_find(cfdata, i); 392 E_Config_Randr2_Screen *cs2 = _config_screen_n_find(cfdata, i);
393 printf("find cs = %p\n", cs2); 393 if (cs2)
394 printf("cs id = %s\n", cs2->id); 394 {
395 printf("find cs = %p\n", cs2);
396 printf("cs id = %s\n", cs2->id);
397 }
395 if (cs2 == cs) return; 398 if (cs2 == cs) return;
396 if (cs2) 399 if (cs2)
397 { 400 {