Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Julliard <julliard@winehq.org>2006-10-23 20:26:39 +0400
committerJunio C Hamano <junkio@cox.net>2006-10-24 00:19:18 +0400
commit2bb10fe51eae9bf205513b6a1f9197d4599a8c03 (patch)
tree801c1629052174f2c73b940b0a05d170565e94fe /builtin-prune-packed.c
parent0abc0260fa3419de649fcc1444e3d256a17ca6c7 (diff)
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 e12b6cf599..24e3b0a8c2 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];