aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/sort/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/sort/file.c')
-rw-r--r--usr.bin/sort/file.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/sort/file.c b/usr.bin/sort/file.c
index 437be09819b5..2e3b4e0a4350 100644
--- a/usr.bin/sort/file.c
+++ b/usr.bin/sort/file.c
@@ -208,9 +208,7 @@ file_list_init(struct file_list *fl, bool tmp)
{
if (fl) {
- fl->count = 0;
- fl->sz = 0;
- fl->fns = NULL;
+ memset(fl, 0, sizeof(*fl));
fl->tmp = tmp;
}
}
@@ -285,10 +283,8 @@ sort_list_init(struct sort_list *l)
{
if (l) {
- l->count = 0;
- l->size = 0;
+ memset(l, 0, sizeof(*l));
l->memsize = sizeof(struct sort_list);
- l->list = NULL;
}
}