diff options
author | Alexandre Julliard <julliard@winehq.org> | 2006-10-23 18:26:39 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-10-23 13:19:18 -0700 |
commit | 2bb10fe51eae9bf205513b6a1f9197d4599a8c03 (patch) | |
tree | 801c1629052174f2c73b940b0a05d170565e94fe | |
parent | 0abc0260fa3419de649fcc1444e3d256a17ca6c7 (diff) | |
download | git-2bb10fe51eae9bf205513b6a1f9197d4599a8c03.tar.gz |
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>
-rw-r--r-- | builtin-prune-packed.c | 2 |
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]; |