eeze - fix possible null dereference of mount pount on mount

fix fixes CID 1039425
This commit is contained in:
Carsten Haitzler 2014-08-22 19:52:29 +09:00
parent 683834cfc4
commit f764b8e644
1 changed files with 3 additions and 1 deletions

View File

@ -252,7 +252,9 @@ eeze_disk_mount(Eeze_Disk *disk)
struct stat st;
EINA_SAFETY_ON_NULL_RETURN_VAL(disk, EINA_FALSE);
if ((!disk->mount_point) && eeze_disk_libmount_mounted_get(disk))
if (!disk->mount_point)
return EINA_FALSE;
if (eeze_disk_libmount_mounted_get(disk))
return EINA_FALSE;
if (!disk->mount_cmd)