=== modified file 'termkey.c' --- termkey.c 2012-01-20 18:03:08 +0000 +++ termkey.c 2012-01-20 17:01:38 +0000 @@ -239,8 +239,7 @@ tk->method.peekkey_mouse = &peekkey_mouse; for(i = 0; keynames[i].name; i++) - if(termkey_register_keyname(tk, keynames[i].sym, keynames[i].name) == -1) - goto abort_free_keynames; + termkey_register_keyname(tk, keynames[i].sym, keynames[i].name); register_c0(tk, TERMKEY_SYM_BACKSPACE, 0x08, NULL); register_c0(tk, TERMKEY_SYM_TAB, 0x09, NULL); @@ -1018,9 +1017,7 @@ if(sym >= tk->nkeynames) { const char **new_keynames = realloc(tk->keynames, sizeof(new_keynames[0]) * (sym + 1)); - if(!new_keynames) - return -1; - + // TODO: Handle realloc() failure tk->keynames = new_keynames; // Fill in the hole