From: Miklos Vajna Date: Fri, 8 Feb 2008 14:26:18 +0000 (+0100) Subject: builtin-gc.c: guard config parser from value=NULL X-Git-Tag: v1.5.4.2~50 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c5e5a2c097240e7d51374eef398d388c5ee5cc9b;p=git.git builtin-gc.c: guard config parser from value=NULL Signed-off-by: Miklos Vajna Signed-off-by: Junio C Hamano --- 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);