diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-05-30 21:51:26 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-30 21:51:26 +0900 |
commit | 23057708160db47fe96e6a0b2a547b3f30813e7e (patch) | |
tree | 0e4ffbf7ee610c01fd8a5f40a61b14ea23717f47 /config.c | |
parent | e12cbeaa624b82bc00d585bb24c8034fbf5f9de2 (diff) | |
parent | 438a87d1e25fa6715f38e30ee394d34e71d44acb (diff) | |
download | git-23057708160db47fe96e6a0b2a547b3f30813e7e.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 = |