CID 1499 : Access to NULL pointer.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38149 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -74,8 +74,8 @@ ImportPLItemsCommand::ImportPLItemsCommand(Playlist* playlist,
|
|||||||
if (!fOldItems) {
|
if (!fOldItems) {
|
||||||
// indicate bad object init
|
// indicate bad object init
|
||||||
_CleanUp(fNewItems, fNewCount, true);
|
_CleanUp(fNewItems, fNewCount, true);
|
||||||
}
|
} else
|
||||||
memset(fOldItems, 0, fOldCount * sizeof(PlaylistItem*));
|
memset(fOldItems, 0, fOldCount * sizeof(PlaylistItem*));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user