summaryrefslogtreecommitdiff
path: root/pico/line.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2018-05-13 01:38:56 -0600
committerEduardo Chappa <chappa@washington.edu>2018-05-13 01:38:56 -0600
commitaac7b10863bcfabe936feb5151e7e11123e13306 (patch)
tree8033a31daed6c94fcbdd41eef1682ba0539cfabd /pico/line.c
parent400647dcc1b040f82d22d539fc013f5e23132049 (diff)
downloadalpine-aac7b10863bcfabe936feb5151e7e11123e13306.tar.xz
* More changes to make Valgrind happy. Work in progress.
Diffstat (limited to 'pico/line.c')
-rw-r--r--pico/line.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pico/line.c b/pico/line.c
index 807c7a23..57c39b04 100644
--- a/pico/line.c
+++ b/pico/line.c
@@ -90,7 +90,9 @@ lalloc(int used)
lp->l_size = size;
lp->l_used = used;
- lp->l_sig = 0; /* assume it is not a signature line */
+ 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 */
return (lp);
}