config: use “(default)” as path in log message, if path is NULL

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

View file

@ -2102,7 +2102,8 @@ resolve_key_binding_collisions(struct config *conf, const char *section_name,
LOG_AND_NOTIFY_ERR(
"%s:%d: [%s].%s: %s%s: "
"modifiers conflict with 'selection-override-modifiers=%s'",
binding1->path, binding1->lineno, section_name,
binding1->path != NULL ? binding1->path : "(default)",
binding1->lineno, section_name,
action_map[binding1->action],
modifier_names, sym_name, override_names);
free(override_names);