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:
Chirayu Desai
2014-12-02 21:28:45 +01:00
committed by Jérôme Duval
parent 4f6ee86881
commit fec5692329
+1 -1
View File
@@ -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;