Merge "libsparse: Fix null pointer issue"
This commit is contained in:
commit
578b74734c
1 changed files with 3 additions and 0 deletions
|
@ -675,6 +675,9 @@ struct output_file *output_file_open_fd(int fd, unsigned int block_size, int64_t
|
|||
} else {
|
||||
out = output_file_new_normal();
|
||||
}
|
||||
if (!out) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
out->ops->open(out, fd);
|
||||
|
||||
|
|
Loading…
Reference in a new issue