Merge "libsparse: Fix null pointer issue"

This commit is contained in:
Colin Cross 2013-04-06 19:03:02 +00:00 committed by Gerrit Code Review
commit 578b74734c

View file

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