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:
parent
eb7595ebbd
commit
2c1c7b49f4
@ -74,8 +74,8 @@ ImportPLItemsCommand::ImportPLItemsCommand(Playlist* playlist,
|
||||
if (!fOldItems) {
|
||||
// indicate bad object init
|
||||
_CleanUp(fNewItems, fNewCount, true);
|
||||
}
|
||||
memset(fOldItems, 0, fOldCount * sizeof(PlaylistItem*));
|
||||
} else
|
||||
memset(fOldItems, 0, fOldCount * sizeof(PlaylistItem*));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user