From: Sup Yut Sum Date: Sat, 9 Feb 2013 11:04:46 +0000 (+0800) Subject: Initialize local variable, otherwise when ReaddUnselectedAddedFilesAfterCommit enable... X-Git-Tag: REL_1.8.2.0_EXTERNAL~206 X-Git-Url: https://repo.or.cz/w/TortoiseGit.git/commitdiff_plain/a1af9704724d87305b7f6d72de14db8481ffd2fc Initialize local variable, otherwise when ReaddUnselectedAddedFilesAfterCommit enabled, sometimes only first file can be re-added Signed-off-by: Sup Yut Sum --- diff --git a/src/TortoiseProc/RebaseDlg.cpp b/src/TortoiseProc/RebaseDlg.cpp index 070e5e8ad..25dcbb3aa 100644 --- a/src/TortoiseProc/RebaseDlg.cpp +++ b/src/TortoiseProc/RebaseDlg.cpp @@ -1137,7 +1137,7 @@ void CRebaseDlg::OnBnClickedContinue() if (((DWORD)CRegStdDWORD(_T("Software\\TortoiseGit\\ReaddUnselectedAddedFilesAfterCommit"), TRUE)) == TRUE) { - BOOL cancel; + BOOL cancel = FALSE; mgtReAddAfterCommit.Execute(cancel); }