From d3e2205f6304e340006ce2d166936a93a00bd44b Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sat, 11 Jan 2014 01:59:03 +0100 Subject: [PATCH] Drop superfluous check; StringAppend also checks if string is not null Signed-off-by: Sven Strickroth --- src/Git/GitIndex.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Git/GitIndex.cpp b/src/Git/GitIndex.cpp index 8e6730207..a7a430209 100644 --- a/src/Git/GitIndex.cpp +++ b/src/Git/GitIndex.cpp @@ -802,9 +802,7 @@ int CGitHeadFileList::CallBack(const unsigned char *sha1, const char *base, int p->at(cur).m_Hash = (char*)sha1; p->at(cur).m_FileName.Empty(); - if(base) - g_Git.StringAppend(&p->at(cur).m_FileName, (BYTE*)base, CP_UTF8, baselen); - + g_Git.StringAppend(&p->at(cur).m_FileName, (BYTE*)base, CP_UTF8, baselen); g_Git.StringAppend(&p->at(cur).m_FileName,(BYTE*)pathname, CP_UTF8); p->at(cur).m_FileName.MakeLower(); -- 2.11.4.GIT