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

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