зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
0abc0260fa
Коммит
2bb10fe51e
|
@ -56,7 +56,7 @@ void prune_packed_objects(int dryrun)
|
||||||
int cmd_prune_packed(int argc, const char **argv, const char *prefix)
|
int cmd_prune_packed(int argc, const char **argv, const char *prefix)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int dryrun;
|
int dryrun = 0;
|
||||||
|
|
||||||
for (i = 1; i < argc; i++) {
|
for (i = 1; i < argc; i++) {
|
||||||
const char *arg = argv[i];
|
const char *arg = argv[i];
|
||||||
|
|
Загрузка…
Ссылка в новой задаче