Skip to contentSkip to conversation

qgit: patchesStillToFind not initialized

PATCH New Pavel Roskin 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qgit: patchesStillToFind not initialized

Git::patchesStillToFind is not initialized on non-StGit repositories. Found by Valgrind.

src/git_startup.cpp +1 -0
index 35dcaf7..307517f 100644
@@ -473,6 +473,7 @@ bool Git::init(QString* repoDir, bool as
 	if (!startGetFileProc())
 		qDebug("ERROR: unable to start background git-diff-tree");
 
+	patchesStillToFind = 0;
 	if (isStGIT && !filteredLoading) { // updated by getRefs()
 		POST_MSG(msg1 + "StGIT patches...");
 		if (getStGITPatches()) {
Signature · 2 lines
Regards,
Pavel Roskin