Just a minor bug that caught my attention while glancing at the code.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25105 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -638,7 +638,7 @@ BShelf::Save()
|
|||||||
{
|
{
|
||||||
status_t status = B_ERROR;
|
status_t status = B_ERROR;
|
||||||
if (fEntry != NULL) {
|
if (fEntry != NULL) {
|
||||||
BFile *file = new BFile(fEntry, B_READ_WRITE);
|
BFile *file = new BFile(fEntry, B_READ_WRITE | B_ERASE_FILE);
|
||||||
status = file->InitCheck();
|
status = file->InitCheck();
|
||||||
if (status < B_OK) {
|
if (status < B_OK) {
|
||||||
delete file;
|
delete file;
|
||||||
|
|||||||
Reference in New Issue
Block a user