{"thread":{"id":"11977","subject":"[PATCH] builtin-show-branch.c: guard config parser from value=NULL","startedAt":"2008-02-09T00:36:36Z","lastAt":"2008-02-09T00:36:36Z","messageCount":1,"participants":["Govind Salinas"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"68032","messageId":"5d46db230802081636j37d97750u1b7a677633e15f71@mail.gmail.com","threadId":"11977","inReplyTo":null,"subject":"[PATCH] builtin-show-branch.c: guard config parser from value=NULL","fromName":"Govind Salinas","fromEmail":"blix@sophiasuchtig.com","sentAt":"2008-02-09T00:36:36Z","receivedAt":"2008-02-09T00:36:36Z","isPatch":true,"sender":{"key":"blix@sophiasuchtig.com","avatar":null},"body":"Signed-off-by: Govind Salinas <blix@sophiasuchtig.com>\n---\n builtin-show-branch.c |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/builtin-show-branch.c b/builtin-show-branch.c\nindex 6dc835d..3f60f32 100644\n--- a/builtin-show-branch.c\n+++ b/builtin-show-branch.c\n@@ -535,7 +535,7 @@ static void append_one_rev(const char *av)\n\n static int git_show_branch_config(const char *var, const char *value)\n {\n-\tif (!strcmp(var, \"showbranch.default\")) {\n+\tif (value && !strcmp(var, \"showbranch.default\")) {\n \t\tif (default_alloc <= default_num + 1) {\n \t\t\tdefault_alloc = default_alloc * 3 / 2 + 20;\n \t\t\tdefault_arg = xrealloc(default_arg, sizeof *default_arg * default_alloc);\n-- \n1.5.4.36.g9af61\n"}]}