Summary:
Add null check condition for dev calloc in eeze scanner module
@fix
Signed-off-by: vivek <vivek.ellur@samsung.com>
Reviewers: devilhorns, cedric
Reviewed By: cedric
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D1804
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
}
eina_stringshare_del(str);
dev = calloc(1, sizeof(Eeze_Scanner_Device));
+ if (!dev) return;
dev->device = eina_stringshare_add(device);
dev->poller = ecore_poller_add(ECORE_POLLER_CORE, 32,
(Ecore_Task_Cb)cdrom_timer, dev);