am 578b7473: Merge "libsparse: Fix null pointer issue"
* commit '578b74734c1cfc773f3213a23a7195aa4b5b97aa': libsparse: Fix null pointer issue
This commit is contained in:
commit
dd0a6cdf1f
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 {
|
} else {
|
||||||
out = output_file_new_normal();
|
out = output_file_new_normal();
|
||||||
}
|
}
|
||||||
|
if (!out) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
out->ops->open(out, fd);
|
out->ops->open(out, fd);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue