From a6c9d35c231ed64befd220527706795d007fe77a Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 14 Jan 2016 15:49:24 +0000 Subject: [PATCH] Adjust previous fix to conform to the existing style in this file. --- usr.sbin/boot0cfg/boot0cfg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr.sbin/boot0cfg/boot0cfg.c b/usr.sbin/boot0cfg/boot0cfg.c index f2cbf67a39d3..c2cb91de4166 100644 --- a/usr.sbin/boot0cfg/boot0cfg.c +++ b/usr.sbin/boot0cfg/boot0cfg.c @@ -336,8 +336,7 @@ read_mbr(const char *disk, u_int8_t **mbr, int check_version) close(fd); return (mbr_size); } - *mbr = malloc(sizeof(buf)); - if (*mbr == NULL) + if ((*mbr = malloc(sizeof(buf))) == NULL) errx(1, "%s: unable to allocate MBR buffer", disk); memcpy(*mbr, buf, sizeof(buf)); close(fd);