diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2012-08-09 19:43:57 +0200 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2012-08-09 19:43:57 +0200 |
commit | d2ce7052ecdfb22e82cdc64075a5d122e4271d9d (patch) | |
tree | d57843fb89d02daa3823e5a57a463582649757c2 | |
parent | d29c63cac9bf16a53e008ab5407174fc3e41efca (diff) | |
download | 0xFFFF-d2ce7052ecdfb22e82cdc64075a5d122e4271d9d.tar.bz2 |
fiasco: If image_name_alloc_from_values fails, return -1
-rw-r--r-- | src/fiasco2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fiasco2.c b/src/fiasco2.c index 64ceef4..bdce830 100644 --- a/src/fiasco2.c +++ b/src/fiasco2.c @@ -510,6 +510,8 @@ int fiasco_unpack(struct fiasco * fiasco, const char * dir) { image = image_list->image; name = image_name_alloc_from_values(image); + if ( ! name ) + return -1; printf("\n"); printf("Unpacking image...\n"); |