[haiku-commits] haiku: hrev43333 - src/apps/mediaplayer/playlist

  • From: stpere@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 27 Nov 2011 05:23:25 +0100 (CET)

hrev43333 adds 1 changeset to branch 'master'
old head: 6ccf83a90801053d600eb71ebfcef2d23938b153
new head: 20e36f6e64394229fd7c0c4e932560f83d26b99c

----------------------------------------------------------------------------

1 files changed, 1 insertions(+), 0 deletions(-)
src/apps/mediaplayer/playlist/FilePlaylistItem.cpp |    1 +

############################################################################

Revision:    hrev43333
Commit:      20e36f6e64394229fd7c0c4e932560f83d26b99c
URL:         http://cgit.haiku-os.org/haiku/commit/?id=20e36f6
Author:      Philippe Saint-Pierre <stpere@xxxxxxxxx>
Date:        Sun Nov 27 04:20:11 2011 UTC

Missing call to InitCheck() causing deadcode

CID 10803

----------------------------------------------------------------------------

diff --git a/src/apps/mediaplayer/playlist/FilePlaylistItem.cpp 
b/src/apps/mediaplayer/playlist/FilePlaylistItem.cpp
index 9eae229..4b1cafd 100644
--- a/src/apps/mediaplayer/playlist/FilePlaylistItem.cpp
+++ b/src/apps/mediaplayer/playlist/FilePlaylistItem.cpp
@@ -437,6 +437,7 @@ FilePlaylistItem::_MoveIntoTrash(vector<entry_ref>* refs,
        }
 
        BDirectory trashDir(trashPath);
+       err = trashDir.InitCheck();
        if (err != B_OK) {
                fprintf(stderr, "failed to init BDirectory for %s: %s\n",
                        trashPath, strerror(err));


Other related posts:

  • » [haiku-commits] haiku: hrev43333 - src/apps/mediaplayer/playlist - stpere