From fec56923298355f41c6146c7e570153eb2279983 Mon Sep 17 00:00:00 2001 From: Chirayu Desai Date: Tue, 2 Dec 2014 23:25:27 +0530 Subject: [PATCH] ColumnListView: Fix two bugs reported by Coverity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix Coverity bug 991147: Copy-paste error * Fix Coverity bug 991264: Dereference after null check Signed-off-by: Jérôme Duval --- src/kits/interface/ColumnListView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/interface/ColumnListView.cpp b/src/kits/interface/ColumnListView.cpp index ce8237e4aa..3931618661 100644 --- a/src/kits/interface/ColumnListView.cpp +++ b/src/kits/interface/ColumnListView.cpp @@ -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;