aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/fstyp/fstyp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/fstyp/fstyp.c')
-rw-r--r--usr.sbin/fstyp/fstyp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/fstyp/fstyp.c b/usr.sbin/fstyp/fstyp.c
index cde179f4a391..803a4c8a797a 100644
--- a/usr.sbin/fstyp/fstyp.c
+++ b/usr.sbin/fstyp/fstyp.c
@@ -82,7 +82,7 @@ read_buf(FILE *fp, off_t off, size_t len)
}
buf = malloc(len);
- if (buf == 0) {
+ if (buf == NULL) {
warn("cannot malloc %zd bytes of memory", len);
return (NULL);
}