Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
prune-packed: Fix uninitialized variable.
author
Alexandre Julliard
<julliard@winehq.org>
Mon, 23 Oct 2006 16:26:39 +0000
(18:26 +0200)
committer
Junio 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
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
0abc026
)
diff --git
a/builtin-prune-packed.c
b/builtin-prune-packed.c
index e12b6cf599a0b54577051e63dfce5ce0d21282cd..24e3b0a8c21b43e0e82e5e505353213ca79f01b0 100644
(file)
--- 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];