summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-05-30 21:51:26 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-05-30 21:51:26 +0900
commit23057708160db47fe96e6a0b2a547b3f30813e7e (patch)
tree0e4ffbf7ee610c01fd8a5f40a61b14ea23717f47 /config.c
parentMerge branch 'bw/ref-prefix-for-configured-refspec' (diff)
parentconfig: a user-provided invalid section is not a BUG (diff)
downloadtgif-23057708160db47fe96e6a0b2a547b3f30813e7e.tar.xz
Merge branch 'js/empty-config-section-fix'
Error codepath fix. * js/empty-config-section-fix: config: a user-provided invalid section is not a BUG
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index f47fcaf88e..2c573ad3dd 100644
--- a/config.c
+++ b/config.c
@@ -2359,7 +2359,7 @@ static int store_aux_event(enum config_event_t type,
if (type == CONFIG_EVENT_SECTION) {
if (cf->var.len < 2 || cf->var.buf[cf->var.len - 1] != '.')
- BUG("Invalid section name '%s'", cf->var.buf);
+ return error("invalid section name '%s'", cf->var.buf);
/* Is this the section we were looking for? */
store->is_keys_section =