Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'js/empty-config-section-fix'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 30 May 2018 12:51:26 +0000
(21:51 +0900)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 30 May 2018 12:51:26 +0000
(21:51 +0900)
Error codepath fix.
* js/empty-config-section-fix:
config: a user-provided invalid section is not a BUG
config.c
patch
|
blob
|
history
raw
(from parent 1:
e12cbea
)
diff --git
a/config.c
b/config.c
index f47fcaf88e96c0c836484ccbccac1f1e023d8315..2c573ad3dd275faa4264b8429b275bb9670d5e04 100644
(file)
--- 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("I
nvalid section name '%s'", cf->var.buf);
+
return error("i
nvalid section name '%s'", cf->var.buf);
/* Is this the section we were looking for? */
store->is_keys_section =