{"thread":{"id":"11982","subject":"[PATCH] builtin-gc.c: guard config parser from value=NULL","startedAt":"2008-02-09T01:12:06Z","lastAt":"2008-02-09T01:12:06Z","messageCount":1,"participants":["Govind Salinas"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"68037","messageId":"5d46db230802081712n5c8ff291x3c0bad8a29030be9@mail.gmail.com","threadId":"11982","inReplyTo":null,"subject":"[PATCH] builtin-gc.c: guard config parser from value=NULL","fromName":"Govind Salinas","fromEmail":"blix@sophiasuchtig.com","sentAt":"2008-02-09T01:12:06Z","receivedAt":"2008-02-09T01:12:06Z","isPatch":true,"sender":{"key":"blix@sophiasuchtig.com","avatar":null},"body":"Signed-off-by: Govind Salinas <blix@sophiasuchtig.com>\n---\n builtin-gc.c |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/builtin-gc.c b/builtin-gc.c\nindex ac34788..ad4a75e 100644\n--- a/builtin-gc.c\n+++ b/builtin-gc.c\n@@ -37,7 +37,7 @@ static const char *argv_rerere[] = {\"rerere\", \"gc\", NULL};\n static int gc_config(const char *var, const char *value)\n {\n \tif (!strcmp(var, \"gc.packrefs\")) {\n-\t\tif (!strcmp(value, \"notbare\"))\n+\t\tif (value && !strcmp(value, \"notbare\"))\n \t\t\tpack_refs = -1;\n \t\telse\n \t\t\tpack_refs = git_config_bool(var, value);\n-- \n1.5.4.36.g9af61\n"}]}