fiasco: If image_name_alloc_from_values fails, return -1
This commit is contained in:
1 parent
d29c63cac9
commit
d2ce7052ec
1 file changed
+2
@@ -510,6 +510,8 @@ int fiasco_unpack(struct fiasco * fiasco, const char * dir) {
|
|||||||
image = image_list->image;
|
image = image_list->image;
|
||||||
|
|
||||||
name = image_name_alloc_from_values(image);
|
name = image_name_alloc_from_values(image);
|
||||||
|
if ( ! name )
|
||||||
|
return -1;
|
||||||
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
printf("Unpacking image...\n");
|
printf("Unpacking image...\n");
|
||||||
|
|||||||
Reference in new issue
Block a user