Adjust previous fix to conform to the existing style in this file.

This commit is contained in:
John Baldwin 2016-01-14 15:49:24 +00:00
parent 6369f51bc8
commit a6c9d35c23
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=293977

View file

@ -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);