ColumnListView: Fix two bugs reported by Coverity
* Fix Coverity bug 991147: Copy-paste error * Fix Coverity bug 991264: Dereference after null check Signed-off-by: Jérôme Duval <[email protected]>
This commit is contained in:
committed by
Jérôme Duval
parent
4f6ee86881
commit
fec5692329
@@ -1292,7 +1292,7 @@ BColumnListView::SwapRows(int32 index1, int32 index2, BRow* parentRow1,
|
|||||||
if (parentRow2 == NULL)
|
if (parentRow2 == NULL)
|
||||||
container2 = fOutlineView->RowList();
|
container2 = fOutlineView->RowList();
|
||||||
else
|
else
|
||||||
container2 = parentRow1->fChildList;
|
container2 = parentRow2->fChildList;
|
||||||
|
|
||||||
if (container2 == NULL)
|
if (container2 == NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user