mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
The malloc will return NULL if it can't allocate memory.
MFC after: 2 weeks.
This commit is contained in:
parent
6a35cae5ed
commit
bb0bd931dc
1 changed files with 1 additions and 1 deletions
|
|
@ -492,7 +492,7 @@ ffs_mkfs(const char *fsys, const fsinfo_t *fsopts)
|
|||
iobufsize = SBLOCKSIZE + 3 * sblock.fs_bsize;
|
||||
else
|
||||
iobufsize = 4 * sblock.fs_bsize;
|
||||
if ((iobuf = malloc(iobufsize)) == 0) {
|
||||
if ((iobuf = malloc(iobufsize)) == NULL) {
|
||||
printf("Cannot allocate I/O buffer\n");
|
||||
exit(38);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue