OSDN Git Service

Fix repeated filenames in Commit Dialog
authorColin Law <colin@clanlaw.org.uk>
Mon, 2 Feb 2009 10:21:55 +0000 (10:21 +0000)
committerFrank Li <lznuaa@gmail.com>
Mon, 2 Feb 2009 11:04:25 +0000 (19:04 +0800)
Fix problem that caused successive filenames to be concatenated
in unversioned section of commit dialog.

src/Git/TGitPath.cpp

index af6a4ab..45aaff3 100644 (file)
@@ -908,6 +908,7 @@ int CTGitPathList::FillUnRev(int action,CTGitPathList *list)
                CString one;\r
                while( pos>=0 && pos<out.size())\r
                {\r
+                       one.Empty();\r
                        g_Git.StringAppend(&one,&out[pos],CP_OEMCP);\r
                        if(!one.IsEmpty())\r
                        {\r