diff options
author | wm4 <wm4@nowhere> | 2015-08-06 00:16:17 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-08-06 00:17:30 +0200 |
commit | caebbded67195d7f234e620cadc25ec276f4abcc (patch) | |
tree | c932d82d8a9fe525e77327a69f32f4b5405fe921 /input/input.c | |
parent | 9bcc882659d5834bb3728c1398508dc14ad12736 (diff) | |
download | mpv-caebbded67195d7f234e620cadc25ec276f4abcc.tar.bz2 mpv-caebbded67195d7f234e620cadc25ec276f4abcc.tar.xz |
command: define-section with empty contents removes a section
Diffstat (limited to 'input/input.c')
-rw-r--r-- | input/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/input/input.c b/input/input.c index 9b93a6ed51..c22ece8203 100644 --- a/input/input.c +++ b/input/input.c @@ -1016,7 +1016,7 @@ void mp_input_define_section(struct input_ctx *ictx, char *name, char *location, // Delete: struct cmd_bind_section *bs = get_bind_section(ictx, bstr0(name)); remove_binds(bs, builtin); - if (contents) { + if (contents && contents[0]) { // Redefine: parse_config(ictx, builtin, bstr0(contents), location, name); } else { |