X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-show-branch.c;h=019abd3527e7c573c69900a58313749e2ef2280a;hb=2b6f0b0a78a713be51149f27c2c1172fe4afc9cd;hp=6dc835d30a6a726c3dd40d23564b0dc32d20b7db;hpb=5d1d1c14790cf74eb0d630c4404114206061232d;p=git.git diff --git a/builtin-show-branch.c b/builtin-show-branch.c index 6dc835d30..019abd352 100644 --- a/builtin-show-branch.c +++ b/builtin-show-branch.c @@ -536,6 +536,8 @@ static void append_one_rev(const char *av) static int git_show_branch_config(const char *var, const char *value) { if (!strcmp(var, "showbranch.default")) { + if (!value) + return config_error_nonbool(var); if (default_alloc <= default_num + 1) { default_alloc = default_alloc * 3 / 2 + 20; default_arg = xrealloc(default_arg, sizeof *default_arg * default_alloc);