Reacted on compiler warning
This commit is contained in:
parent
95bddf2f2a
commit
239a03219d
@ -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;
|
||||
char *what= "[unknown filetype]", sfe[5*SfileadrL], sfe2[5*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;
|
||||
void *data_stream= NULL;
|
||||
mode_t mode;
|
||||
@ -2663,7 +2663,7 @@ int Xorriso_tree_restore_node(struct XorrisO *xorriso, IsoNode *node,
|
||||
}
|
||||
close(write_fd);
|
||||
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);
|
||||
target_deleted= 1;
|
||||
}
|
||||
@ -2763,7 +2763,7 @@ restore_properties:;
|
||||
ex:;
|
||||
if(write_fd >= 0) {
|
||||
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);
|
||||
}
|
||||
if(data_stream!=NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user