Page MenuHomeFreeBSD

D36482.diff
No OneTemporary

D36482.diff

diff --git a/stand/libsa/dosfs.c b/stand/libsa/dosfs.c
--- a/stand/libsa/dosfs.c
+++ b/stand/libsa/dosfs.c
@@ -321,7 +321,7 @@
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);

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 21, 3:58 AM (6 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27788647
Default Alt Text
D36482.diff (376 B)

Event Timeline