summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getmntinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/getmntinfo.c')
-rw-r--r--lib/libc/gen/getmntinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/getmntinfo.c b/lib/libc/gen/getmntinfo.c
index 99f82aa..606fea7 100644
--- a/lib/libc/gen/getmntinfo.c
+++ b/lib/libc/gen/getmntinfo.c
@@ -56,7 +56,7 @@ getmntinfo(struct statfs **mntbufp, int flags)
if (mntbuf)
free(mntbuf);
bufsize = (mntsize + 1) * sizeof(struct statfs);
- if ((mntbuf = (struct statfs *)malloc(bufsize)) == 0)
+ if ((mntbuf = malloc(bufsize)) == NULL)
return (0);
if ((mntsize = getfsstat(mntbuf, bufsize, flags)) < 0)
return (0);
OpenPOWER on IntegriCloud