mirror of
https://github.com/git-for-windows/git.git
synced 2026-05-05 17:40:24 -05:00
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
This commit is contained in:
2
config.c
2
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 =
|
||||
|
||||
Reference in New Issue
Block a user