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 <jerome.duval@gmail.com>
This commit is contained in:
parent
4f6ee86881
commit
fec5692329
|
@ -1292,7 +1292,7 @@ BColumnListView::SwapRows(int32 index1, int32 index2, BRow* parentRow1,
|
|||
if (parentRow2 == NULL)
|
||||
container2 = fOutlineView->RowList();
|
||||
else
|
||||
container2 = parentRow1->fChildList;
|
||||
container2 = parentRow2->fChildList;
|
||||
|
||||
if (container2 == NULL)
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue