summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorvivek <vivek.ellur@samsung.com>2014-12-22 15:05:28 +0100
committerCedric BAIL <cedric@osg.samsung.com>2014-12-22 15:09:59 +0100
commit62a6db2dace24315ceeb344b01b4d5c6dd3b32c7 (patch)
tree143bd9f7a6cc6323abc43e840a3f52a8c36472a7 /src/bin
parentaf43bc67e4a79b18343f7f8f55754b3eceaa48a3 (diff)
eeze: add null check condition in eeze scanner module.
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>
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eeze/eeze_scanner.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/eeze/eeze_scanner.c b/src/bin/eeze/eeze_scanner.c
index a6a067dee6..c16447c9b2 100644
--- a/src/bin/eeze/eeze_scanner.c
+++ b/src/bin/eeze/eeze_scanner.c
@@ -353,6 +353,7 @@ cb_stor_chg(const char *device, Eeze_Udev_Event ev, void *data EINA_UNUSED, Eeze
353 } 353 }
354 eina_stringshare_del(str); 354 eina_stringshare_del(str);
355 dev = calloc(1, sizeof(Eeze_Scanner_Device)); 355 dev = calloc(1, sizeof(Eeze_Scanner_Device));
356 if (!dev) return;
356 dev->device = eina_stringshare_add(device); 357 dev->device = eina_stringshare_add(device);
357 dev->poller = ecore_poller_add(ECORE_POLLER_CORE, 32, 358 dev->poller = ecore_poller_add(ECORE_POLLER_CORE, 32,
358 (Ecore_Task_Cb)cdrom_timer, dev); 359 (Ecore_Task_Cb)cdrom_timer, dev);