aboutsummaryrefslogtreecommitdiff
path: root/stand
diff options
context:
space:
mode:
authorMichael Gmelin <grembo@FreeBSD.org>2022-09-07 16:56:49 +0000
committerMichael Gmelin <grembo@FreeBSD.org>2022-09-08 00:16:34 +0000
commit0eb736c0f673d2804a0c8c14fa1e4eae228ab6d2 (patch)
tree59916da021ee0fabdd261b5b357c4da86c61fb80 /stand
parentb3b6a959c85af3aabbde3ef2b80dbd4bf5b6f5a7 (diff)
Diffstat (limited to 'stand')
-rw-r--r--stand/libsa/dosfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/libsa/dosfs.c b/stand/libsa/dosfs.c
index 09f09dc66809..e50f8f25e16a 100644
--- a/stand/libsa/dosfs.c
+++ b/stand/libsa/dosfs.c
@@ -321,7 +321,7 @@ dos_open(const char *path, struct open_file *fd)
if (mnt == NULL) {
/* Allocate mount structure, associate with open */
- if ((fs = malloc(sizeof(DOS_FS))) == NULL)
+ if ((fs = calloc(1, sizeof(DOS_FS))) == NULL)
return (errno);
if ((err = dos_mount_impl(fs, fd))) {
free(fs);