mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
really_add_keybinding: Remove unneeded initialization.
According to Jonas Fonseca, if init_string(&canonical) fails, then it anyway sets canonical.source = NULL and makes done_string(&canonical) safe, even if canonical was previously uninitialized.
This commit is contained in:
parent
c79ecefe73
commit
1837a55444
@ -821,7 +821,7 @@ really_add_keybinding(void *data, unsigned char *keystroke)
|
||||
if (keybinding_exists(hop->keymap_id, &hop->kbd, &action_id)
|
||||
&& action_id != ACT_MAIN_NONE) {
|
||||
struct kbdbind_add_hop *new_hop;
|
||||
struct string canonical = NULL_STRING;
|
||||
struct string canonical;
|
||||
|
||||
/* Same keystroke for same action, just return. */
|
||||
if (action_id == hop->action_id) return;
|
||||
|
Loading…
Reference in New Issue
Block a user