From b5ba6292892161939e763063ad61854084aa2c1e Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Sun, 16 Apr 2017 14:06:47 +0300 Subject: [PATCH] usr.sbin/fstyp: Use NULL instead of 0 for pointers. (FreeBSD@GitHub 27f4c84a) --- usr.sbin/fstyp/fstyp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/fstyp/fstyp.c b/usr.sbin/fstyp/fstyp.c index 68f6b497db..d69ae75445 100644 --- a/usr.sbin/fstyp/fstyp.c +++ b/usr.sbin/fstyp/fstyp.c @@ -87,7 +87,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); } -- 2.11.4.GIT