Adjust previous fix to conform to the existing style in this file.
This commit is contained in:
parent
6369f51bc8
commit
a6c9d35c23
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user