summaryrefslogtreecommitdiff
path: root/src/lib/eeze
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-22 19:52:29 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-22 20:14:59 +0900
commitf764b8e644d55af768c94e8c30e3d6cc76c26fc3 (patch)
tree7d03994ca89fa30b1a2e9549d23a87ed99f6fa02 /src/lib/eeze
parent683834cfc4a3b60ce9c5790bfbd232f591897e92 (diff)
eeze - fix possible null dereference of mount pount on mount
fix fixes CID 1039425
Diffstat (limited to 'src/lib/eeze')
-rw-r--r--src/lib/eeze/eeze_disk_mount.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/eeze/eeze_disk_mount.c b/src/lib/eeze/eeze_disk_mount.c
index bfbf8f0781..1821a375af 100644
--- a/src/lib/eeze/eeze_disk_mount.c
+++ b/src/lib/eeze/eeze_disk_mount.c
@@ -252,7 +252,9 @@ eeze_disk_mount(Eeze_Disk *disk)
252 struct stat st; 252 struct stat st;
253 EINA_SAFETY_ON_NULL_RETURN_VAL(disk, EINA_FALSE); 253 EINA_SAFETY_ON_NULL_RETURN_VAL(disk, EINA_FALSE);
254 254
255 if ((!disk->mount_point) && eeze_disk_libmount_mounted_get(disk)) 255 if (!disk->mount_point)
256 return EINA_FALSE;
257 if (eeze_disk_libmount_mounted_get(disk))
256 return EINA_FALSE; 258 return EINA_FALSE;
257 259
258 if (!disk->mount_cmd) 260 if (!disk->mount_cmd)