diff --git a/retroshare-gui/src/gui/ForumsDialog.cpp b/retroshare-gui/src/gui/ForumsDialog.cpp index f1117b96f..3cee62c22 100644 --- a/retroshare-gui/src/gui/ForumsDialog.cpp +++ b/retroshare-gui/src/gui/ForumsDialog.cpp @@ -871,7 +871,7 @@ void ForumsDialog::insertThreads() void ForumsDialog::FillThreads(QList &ThreadList) { - int Index; + int Index = 0; QTreeWidgetItem *Thread; // iterate all new threads @@ -926,7 +926,7 @@ void ForumsDialog::FillThreads(QList &ThreadList) void ForumsDialog::FillChildren(QTreeWidgetItem *Parent, QTreeWidgetItem *NewParent) { - int Index; + int Index = 0; int NewIndex; int NewCount = NewParent->childCount();