Skip to content
Snippets Groups Projects
Commit 23057708 authored by Junio C Hamano's avatar Junio C Hamano
Browse files

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
parents e12cbeaa 438a87d1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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 =
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment