Commit 038c1654d9bb17070272d0ba6f4489eada267bd0

Eitan Adler 2013-05-19T01:41:00

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);