# [PATCH] qgit: patchesStillToFind not initialized

1 messages from 2005-12-22 to 2005-12-22. Participants: Pavel Roskin.
Thread: https://gitlist.dev/t/2905

## Pavel Roskin, 2005-12-22 01:19

Subject: [PATCH] qgit: patchesStillToFind not initialized
Message-ID: <1135214376.2253.2.camel@dv>
URL: https://gitlist.dev/e/1135214376.2253.2.camel%40dv

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

Signed-off-by: Pavel Roskin <proski@gnu.org>

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

```
