summaryrefslogtreecommitdiff
path: root/builtin-prune-packed.c
diff options
context:
space:
mode:
authorAlexandre Julliard <julliard@winehq.org>2006-10-23 16:26:39 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-10-23 20:19:18 (GMT)
commit2bb10fe51eae9bf205513b6a1f9197d4599a8c03 (patch)
tree801c1629052174f2c73b940b0a05d170565e94fe /builtin-prune-packed.c
parent0abc0260fa3419de649fcc1444e3d256a17ca6c7 (diff)
downloadgit-2bb10fe51eae9bf205513b6a1f9197d4599a8c03.zip
git-2bb10fe51eae9bf205513b6a1f9197d4599a8c03.tar.gz
git-2bb10fe51eae9bf205513b6a1f9197d4599a8c03.tar.bz2
prune-packed: Fix uninitialized variable.
The dryrun variable was made local instead of static by the previous commit, and local variables aren't initialized to zero. Signed-off-by: Alexandre Julliard <julliard@winehq.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-prune-packed.c')
-rw-r--r--builtin-prune-packed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-prune-packed.c b/builtin-prune-packed.c
index e12b6cf..24e3b0a 100644
--- a/builtin-prune-packed.c
+++ b/builtin-prune-packed.c
@@ -56,7 +56,7 @@ void prune_packed_objects(int dryrun)
int cmd_prune_packed(int argc, const char **argv, const char *prefix)
{
int i;
- int dryrun;
+ int dryrun = 0;
for (i = 1; i < argc; i++) {
const char *arg = argv[i];