threads / patch / 2905

patchqgit: patchesStillToFind not initialized

Subject: [PATCH] qgit: patchesStillToFind not initialized

## tl;dr

One message between Dec 22, 2005 and Dec 22, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Pavel Roskin· Dec 22, 2005, 01:19 UTC · lore

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

Signed-off-by: Pavel Roskin <proski@gnu.org>
Show changes to src/git_startup.cpp +1 −0
diff --git a/src/git_startup.cpp b/src/git_startup.cpp
index 35dcaf7..307517f 100644
--- a/src/git_startup.cpp
+++ b/src/git_startup.cpp
@@ -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()) {
-- 
Regards,
Pavel Roskin

← back to recent threads