fiasco: Fix initializing variables
This commit is contained in:
1 parent
89566f559b
commit
142ef93ddc
1 file changed
+7
-3
+7
-3
@@ -453,9 +453,9 @@ int fiasco_write_to_file(struct fiasco * fiasco, const char * file) {
|
|||||||
|
|
||||||
int fiasco_unpack(struct fiasco * fiasco, const char * dir) {
|
int fiasco_unpack(struct fiasco * fiasco, const char * dir) {
|
||||||
|
|
||||||
int fd = -1;
|
int fd;
|
||||||
char * name = NULL;
|
char * name;
|
||||||
char * layout_name = NULL;
|
char * layout_name;
|
||||||
struct image * image;
|
struct image * image;
|
||||||
struct image_list * image_list;
|
struct image_list * image_list;
|
||||||
uint32_t size;
|
uint32_t size;
|
||||||
@@ -484,6 +484,10 @@ int fiasco_unpack(struct fiasco * fiasco, const char * dir) {
|
|||||||
|
|
||||||
while ( image_list ) {
|
while ( image_list ) {
|
||||||
|
|
||||||
|
fd = -1;
|
||||||
|
name = NULL;
|
||||||
|
layout_name = NULL;
|
||||||
|
|
||||||
image = image_list->image;
|
image = image_list->image;
|
||||||
|
|
||||||
name = image_name_alloc_from_values(image);
|
name = image_name_alloc_from_values(image);
|
||||||
|
|||||||
Reference in new issue
Block a user