diff options
Diffstat (limited to 'bin/ksh/emacs.c')
-rw-r--r-- | bin/ksh/emacs.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/ksh/emacs.c b/bin/ksh/emacs.c index 72333eb1152..9a929dd43e0 100644 --- a/bin/ksh/emacs.c +++ b/bin/ksh/emacs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: emacs.c,v 1.50 2015/03/25 12:10:52 jca Exp $ */ +/* $OpenBSD: emacs.c,v 1.51 2015/09/01 13:12:31 tedu Exp $ */ /* * Emacs-like command line editing and history @@ -1149,7 +1149,7 @@ x_push(int nchars) { char *cp = str_nsave(xcp, nchars, AEDIT); if (killstack[killsp]) - afree((void *)killstack[killsp], AEDIT); + afree(killstack[killsp], AEDIT); killstack[killsp] = cp; killsp = (killsp + 1) % KILLSIZE; } @@ -1307,8 +1307,7 @@ static void kb_del(struct kb_entry *k) { TAILQ_REMOVE(&kblist, k, entry); - if (k->args) - free(k->args); + free(k->args); afree(k, AEDIT); } |