config: resolve collisions: return ‘false’ on failure

This commit is contained in:
Daniel Eklöf 2021-12-11 20:00:32 +01:00
parent 6fa09d24e5
commit 17250ec393
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -2089,6 +2089,7 @@ resolve_key_binding_collisions(struct config *conf, const char *section_name,
has_pipe ? " [" : "", has_pipe ? " [" : "",
has_pipe ? collision_binding->pipe.argv.args[0] : "", has_pipe ? collision_binding->pipe.argv.args[0] : "",
has_pipe ? "]" : ""); has_pipe ? "]" : "");
ret = false;
break; break;
} }
@ -2106,6 +2107,7 @@ resolve_key_binding_collisions(struct config *conf, const char *section_name,
binding1->lineno, section_name, binding1->lineno, section_name,
action_map[binding1->action], action_map[binding1->action],
modifier_names, sym_name, override_names); modifier_names, sym_name, override_names);
ret = false;
free(override_names); free(override_names);
break; break;
} }