Skip to content

Commit 2305770

Browse files
committed
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
2 parents e12cbea + 438a87d commit 2305770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2359,7 +2359,7 @@ static int store_aux_event(enum config_event_t type,
23592359

23602360
if (type == CONFIG_EVENT_SECTION) {
23612361
if (cf->var.len < 2 || cf->var.buf[cf->var.len - 1] != '.')
2362-
BUG("Invalid section name '%s'", cf->var.buf);
2362+
return error("invalid section name '%s'", cf->var.buf);
23632363

23642364
/* Is this the section we were looking for? */
23652365
store->is_keys_section =

0 commit comments

Comments
 (0)