Reacted on compiler warning

This commit is contained in:
Thomas Schmitt 2008-08-24 12:54:00 +00:00
parent 95bddf2f2a
commit 239a03219d
2 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
#define Xorriso_timestamP "2008.08.24.124424"
#define Xorriso_timestamP "2008.08.24.125257"

View File

@ -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)