fiasco: Mute warning about uninitialized variables fs and checksum
This commit is contained in:
1 parent
df2340e48d
commit
bacbb0165b
1 file changed
+9
-2
+9
-2
@@ -128,6 +128,7 @@ struct fiasco * fiasco_alloc_from_file(const char * file) {
|
|||||||
while ( 1 ) {
|
while ( 1 ) {
|
||||||
|
|
||||||
/* If end of file, return fiasco image */
|
/* If end of file, return fiasco image */
|
||||||
|
checksum = 0x00;
|
||||||
READ_OR_RETURN(fiasco, checksum, buf, 1);
|
READ_OR_RETURN(fiasco, checksum, buf, 1);
|
||||||
|
|
||||||
/* Header of next image (0x54) */
|
/* Header of next image (0x54) */
|
||||||
@@ -617,6 +618,8 @@ int fiasco_unpack(struct fiasco * fiasco, const char * dir) {
|
|||||||
|
|
||||||
while ( image_list ) {
|
while ( image_list ) {
|
||||||
|
|
||||||
|
fd = -1;
|
||||||
|
|
||||||
image = image_list->image;
|
image = image_list->image;
|
||||||
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
@@ -660,8 +663,10 @@ int fiasco_unpack(struct fiasco * fiasco, const char * dir) {
|
|||||||
|
|
||||||
free(layout_name);
|
free(layout_name);
|
||||||
|
|
||||||
if ( ! simulate )
|
if ( ! simulate ) {
|
||||||
close(fd);
|
close(fd);
|
||||||
|
fd = -1;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -713,8 +718,10 @@ int fiasco_unpack(struct fiasco * fiasco, const char * dir) {
|
|||||||
|
|
||||||
free(name);
|
free(name);
|
||||||
|
|
||||||
if ( ! simulate )
|
if ( ! simulate ) {
|
||||||
close(fd);
|
close(fd);
|
||||||
|
fd = -1;
|
||||||
|
}
|
||||||
|
|
||||||
if ( image_part ) {
|
if ( image_part ) {
|
||||||
image_part = image_part->next;
|
image_part = image_part->next;
|
||||||
|
|||||||
Reference in new issue
Block a user