diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libedit/term.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libedit/term.c b/lib/libedit/term.c index 6ab407b..f98d02f 100644 --- a/lib/libedit/term.c +++ b/lib/libedit/term.c @@ -234,6 +234,7 @@ term_init(el) el->el_term.t_buf = (char *) el_malloc(TC_BUFSIZE); el->el_term.t_cap = (char *) el_malloc(TC_BUFSIZE); el->el_term.t_fkey = (fkey_t *) el_malloc(4 * sizeof(fkey_t)); + (void) memset(el->el_term.t_fkey, 0, 4 * sizeof(fkey_t)); el->el_term.t_loc = 0; el->el_term.t_str = (char **) el_malloc(T_str * sizeof(char*)); (void) memset(el->el_term.t_str, 0, T_str * sizeof(char*)); |