Skip to content

Commit

Permalink
prune-packed: Fix uninitialized variable.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexandre Julliard authored and Junio C Hamano committed Oct 23, 2006
1 parent 0abc026 commit 2bb10fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-prune-packed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 2bb10fe

Please sign in to comment.