diff options
Diffstat (limited to 'libsparse')
-rw-r--r-- | libsparse/output_file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libsparse/output_file.c b/libsparse/output_file.c index b5ae419..5014e4a 100644 --- a/libsparse/output_file.c +++ b/libsparse/output_file.c @@ -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); |