From c5e5a2c097240e7d51374eef398d388c5ee5cc9b Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 8 Feb 2008 15:26:18 +0100 Subject: [PATCH] builtin-gc.c: guard config parser from value=NULL Signed-off-by: Miklos Vajna Signed-off-by: Junio C Hamano --- builtin-gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin-gc.c b/builtin-gc.c index ac34788c8..ad4a75eed 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); -- 2.30.2