Checking the return value of Xorriso_open_job_data_to(). Coverity CID 28705.
This commit is contained in:
parent
df49e23bcf
commit
ac7155871f
@ -1211,7 +1211,7 @@ int Xorriso_restore_tree(struct XorrisO *xorriso, IsoDir *dir,
|
|||||||
IsoNode *node;
|
IsoNode *node;
|
||||||
IsoDirIter *iter= NULL;
|
IsoDirIter *iter= NULL;
|
||||||
IsoNode **node_array= NULL;
|
IsoNode **node_array= NULL;
|
||||||
int node_count, node_idx;
|
int node_count= 0, node_idx;
|
||||||
int ret, source_is_dir, fret, was_failure= 0;
|
int ret, source_is_dir, fret, was_failure= 0;
|
||||||
int do_not_dive, source_is_split= 0, len_dp, len_ip, stbuf_ret, hflag, hret;
|
int do_not_dive, source_is_split= 0, len_dp, len_ip, stbuf_ret, hflag, hret;
|
||||||
char *name, *disk_name, *leaf_name, *srcpt, *stbuf_src= "";
|
char *name, *disk_name, *leaf_name, *srcpt, *stbuf_src= "";
|
||||||
@ -1987,7 +1987,7 @@ int Xorriso_read_file_data(struct XorrisO *xorriso, IsoNode *node,
|
|||||||
|
|
||||||
if(Sfile_str(job->data_to_path, disk_path, 0) <= 0)
|
if(Sfile_str(job->data_to_path, disk_path, 0) <= 0)
|
||||||
{ret= -1; goto ex;}
|
{ret= -1; goto ex;}
|
||||||
Xorriso_open_job_data_to(xorriso, job, 0);
|
ret= Xorriso_open_job_data_to(xorriso, job, 0);
|
||||||
if(ret <= 0)
|
if(ret <= 0)
|
||||||
goto ex;
|
goto ex;
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2015.11.08.163431"
|
#define Xorriso_timestamP "2015.11.08.164013"
|
||||||
|
Loading…
Reference in New Issue
Block a user