Reacted on compiler warning
This commit is contained in:
parent
32486a5ca2
commit
cec06c2a9a
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2008.08.24.124424"
|
#define Xorriso_timestamP "2008.08.24.125257"
|
||||||
|
@ -2560,7 +2560,7 @@ int Xorriso_tree_restore_node(struct XorrisO *xorriso, IsoNode *node,
|
|||||||
int target_deleted= 0;
|
int target_deleted= 0;
|
||||||
char *what= "[unknown filetype]", sfe[5*SfileadrL], sfe2[5*SfileadrL];
|
char *what= "[unknown filetype]", sfe[5*SfileadrL], sfe2[5*SfileadrL];
|
||||||
char buf[32*1024], type_text[5], temp_path[SfileadrL];
|
char buf[32*1024], type_text[5], temp_path[SfileadrL];
|
||||||
char *link_target, *open_path_pt;
|
char *link_target, *open_path_pt= NULL;
|
||||||
off_t todo, size, seek_ret, last_p_count= 0;
|
off_t todo, size, seek_ret, last_p_count= 0;
|
||||||
void *data_stream= NULL;
|
void *data_stream= NULL;
|
||||||
mode_t mode;
|
mode_t mode;
|
||||||
@ -2663,7 +2663,7 @@ int Xorriso_tree_restore_node(struct XorrisO *xorriso, IsoNode *node,
|
|||||||
}
|
}
|
||||||
close(write_fd);
|
close(write_fd);
|
||||||
write_fd= -1;
|
write_fd= -1;
|
||||||
if(todo > 0 && xorriso->extract_error_mode == 2) {
|
if(todo > 0 && xorriso->extract_error_mode == 2 && open_path_pt != NULL) {
|
||||||
unlink(open_path_pt);
|
unlink(open_path_pt);
|
||||||
target_deleted= 1;
|
target_deleted= 1;
|
||||||
}
|
}
|
||||||
@ -2763,7 +2763,7 @@ restore_properties:;
|
|||||||
ex:;
|
ex:;
|
||||||
if(write_fd >= 0) {
|
if(write_fd >= 0) {
|
||||||
close(write_fd);
|
close(write_fd);
|
||||||
if(ret <= 0 && xorriso->extract_error_mode == 2)
|
if(ret <= 0 && xorriso->extract_error_mode == 2 && open_path_pt != NULL)
|
||||||
unlink(open_path_pt);
|
unlink(open_path_pt);
|
||||||
}
|
}
|
||||||
if(data_stream!=NULL)
|
if(data_stream!=NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user