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:
Chirayu Desai 2014-12-02 23:25:27 +05:30 committed by Jérôme Duval
parent 4f6ee86881
commit fec5692329
1 changed files with 1 additions and 1 deletions

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;