Installer: Check return value of GetMountPoint.
Probably fixes #14586 (NULL dereference in the strcmp on the next line) but I couldn't quite manage to reproduce it.
This commit is contained in:
parent
414b21c497
commit
72fa4a2e5e
@ -773,7 +773,8 @@ SourceVisitor::Visit(BPartition *partition, int32 level)
|
||||
bool isBootPartition = false;
|
||||
if (partition->IsMounted()) {
|
||||
BPath mountPoint;
|
||||
partition->GetMountPoint(&mountPoint);
|
||||
if (partition->GetMountPoint(&mountPoint) != B_OK)
|
||||
return false;
|
||||
isBootPartition = strcmp(BOOT_PATH, mountPoint.Path()) == 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user