diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2008-02-08 15:26:18 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-11 13:11:36 -0800 |
commit | c5e5a2c097240e7d51374eef398d388c5ee5cc9b (patch) | |
tree | c0d8574d421592fb808d70aee5460eb656388d20 /builtin-gc.c | |
parent | cc1816b0d64a2aa3d6c32d642c3b403f8625c484 (diff) | |
download | git-c5e5a2c097240e7d51374eef398d388c5ee5cc9b.tar.gz |
builtin-gc.c: guard config parser from value=NULL
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-gc.c')
-rw-r--r-- | builtin-gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-gc.c b/builtin-gc.c index ac34788c89..ad4a75eedd 100644 --- a/builtin-gc.c +++ b/builtin-gc.c @@ -37,7 +37,7 @@ static const char *argv_rerere[] = {"rerere", "gc", NULL}; static int gc_config(const char *var, const char *value) { if (!strcmp(var, "gc.packrefs")) { - if (!strcmp(value, "notbare")) + if (value && !strcmp(value, "notbare")) pack_refs = -1; else pack_refs = git_config_bool(var, value); |