{"thread":{"id":"11981","subject":"[PATCH] builtin-reflog.c: guard config parser from value=NULL","startedAt":"2008-02-09T00:39:48Z","lastAt":"2008-02-09T00:39:48Z","messageCount":1,"participants":["Govind Salinas"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"68036","messageId":"5d46db230802081639q6cca5851if63da9531984e681@mail.gmail.com","threadId":"11981","inReplyTo":null,"subject":"[PATCH] builtin-reflog.c: guard config parser from value=NULL","fromName":"Govind Salinas","fromEmail":"blix@sophiasuchtig.com","sentAt":"2008-02-09T00:39:48Z","receivedAt":"2008-02-09T00:39:48Z","isPatch":true,"sender":{"key":"blix@sophiasuchtig.com","avatar":null},"body":"Signed-off-by: Govind Salinas <blix@sophiasuchtig.com>\n---\n builtin-reflog.c |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/builtin-reflog.c b/builtin-reflog.c\nindex e6834dd..03b8ab4 100644\n--- a/builtin-reflog.c\n+++ b/builtin-reflog.c\n@@ -307,9 +307,9 @@ static int collect_reflog(const char *ref, const\nunsigned char *sha1, int unused\n\n static int reflog_expire_config(const char *var, const char *value)\n {\n-\tif (!strcmp(var, \"gc.reflogexpire\"))\n+\tif (value && !strcmp(var, \"gc.reflogexpire\"))\n \t\tdefault_reflog_expire = approxidate(value);\n-\telse if (!strcmp(var, \"gc.reflogexpireunreachable\"))\n+\telse if (value && !strcmp(var, \"gc.reflogexpireunreachable\"))\n \t\tdefault_reflog_expire_unreachable = approxidate(value);\n \telse\n \t\treturn git_default_config(var, value);\n-- \n1.5.4.36.g9af61\n"}]}