Code

prune-packed: Fix uninitialized variable.
authorAlexandre Julliard <julliard@winehq.org>
Mon, 23 Oct 2006 16:26:39 +0000 (18:26 +0200)
committerJunio C Hamano <junkio@cox.net>
Mon, 23 Oct 2006 20:19:18 +0000 (13:19 -0700)
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>
builtin-prune-packed.c

index e12b6cf599a0b54577051e63dfce5ce0d21282cd..24e3b0a8c21b43e0e82e5e505353213ca79f01b0 100644 (file)
@@ -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];