forked from enlightenment/efl
eeze - fix possible null dereference of mount pount on mount
fix fixes CID 1039425
This commit is contained in:
parent
683834cfc4
commit
f764b8e644
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue