summaryrefslogtreecommitdiff
path: root/pico
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2018-05-19 00:18:27 -0600
committerEduardo Chappa <chappa@washington.edu>2018-05-19 00:18:27 -0600
commit2c08a863b7242f6658151a2e2592a6293c4dcb65 (patch)
treec0c788c662945a82e701f22d8e9a8823711e5ebd /pico
parent58396d907b993f849a7f32b9665b793c9a5c5d0e (diff)
downloadalpine-2c08a863b7242f6658151a2e2592a6293c4dcb65.tar.xz
* Clear history when closing alpine, for commands that keep it.
* Reversing the clearing of the rmap memory.
Diffstat (limited to 'pico')
-rw-r--r--pico/line.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pico/line.c b/pico/line.c
index 57c39b0..f523ae8 100644
--- a/pico/line.c
+++ b/pico/line.c
@@ -91,8 +91,7 @@ lalloc(int used)
lp->l_size = size;
lp->l_used = used;
lp->l_sig = 0; /* assume it is not a signature line */
- lp->l_text[0].c = '\0'; /* this is not necessary */
- lp->l_text[0].a = lp->l_text[0].d = 0; /* but it makes valgrind happy */
+ memset((void *)lp->l_text, 0, size*sizeof(CELL));
return (lp);
}