Commit 60750fc43e761b57ade6373f3ede14c5187814dc

Edward Thomson 2013-05-20T13:53:00

Merge pull request #1596 from grimreaper/development Initialize loose_deleted before it is used for a check later on.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/refdb_fs.c b/src/refdb_fs.c
index f964c41..7de56a1 100644
--- a/src/refdb_fs.c
+++ b/src/refdb_fs.c
@@ -976,7 +976,7 @@ static int refdb_fs_backend__delete(
 	struct packref *pack_ref;
 	khiter_t pack_ref_pos;
 	int error = 0, pack_error;
-	bool loose_deleted;
+	bool loose_deleted = 0;
 
 	assert(_backend);
 	assert(ref);