mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 989538 - GetDefaultStorageName should always initialize the returned storageName. r=janv
This commit is contained in:
parent
c1c18d00d1
commit
109f1499a5
@ -3361,7 +3361,12 @@ nsDOMDeviceStorage::GetDefaultStorageName(const nsAString& aStorageType,
|
||||
GetOrderedVolumeNames(volNames);
|
||||
if (volNames.Length() > 0) {
|
||||
aStorageName = volNames[0];
|
||||
return;
|
||||
}
|
||||
|
||||
// No volumes available, return the empty string. This is normal for
|
||||
// b2g-desktop.
|
||||
aStorageName.Truncate();
|
||||
}
|
||||
|
||||
bool
|
||||
|
Loading…
Reference in New Issue
Block a user