summaryrefslogtreecommitdiff
path: root/pico
diff options
context:
space:
mode:
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 57c39b04..f523ae86 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);
}