@matheusbsbs / matheus-bagliano / commits / 2bb10fe51e
Fork 0

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>

Alexandre Julliard committed Oct 23, 2006 at 18:26 UTC 2bb10fe51eae9bf205513b6a1f9197d4599a8c03
1 file changed +1 -1
builtin-prune-packed.c
+1 -1
@@ -56,7 +56,7 @@ void prune_packed_objects(int dryrun)
56 int cmd_prune_packed(int argc, const char **argv, const char *prefix)
57 {
58 int i;
59 - int dryrun;
59 + int dryrun = 0;
60
61 for (i = 1; i < argc; i++) {
62 const char *arg = argv[i];