summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2012-08-09 19:43:57 +0200
committerPali Rohár <pali.rohar@gmail.com>2012-08-09 19:43:57 +0200
commitd2ce7052ecdfb22e82cdc64075a5d122e4271d9d (patch)
treed57843fb89d02daa3823e5a57a463582649757c2
parentd29c63cac9bf16a53e008ab5407174fc3e41efca (diff)
download0xFFFF-d2ce7052ecdfb22e82cdc64075a5d122e4271d9d.tar.bz2
fiasco: If image_name_alloc_from_values fails, return -1
-rw-r--r--src/fiasco2.c2
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");