1
0
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:
Kalle Olavi Niemitalo 2006-08-13 15:45:13 +03:00 committed by Kalle Olavi Niemitalo
parent c79ecefe73
commit 1837a55444

View File

@ -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;