Reacted on warnings of cppcheck.
This commit is contained in:
parent
a2fe1a4100
commit
1247edff95
@ -2417,8 +2417,10 @@ int iso_image_create_burn_source(IsoImage *image, IsoWriteOpts *opts,
|
||||
|
||||
if (!opts->allow_deep_paths) {
|
||||
ret = make_reloc_dir_if_needed(image, opts, 0);
|
||||
if (ret < 0)
|
||||
if (ret < 0) {
|
||||
free(source);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* Libisofs_with_rr_reloc_diR */
|
||||
|
@ -141,11 +141,12 @@ void update_next(IsoDirIter *iter)
|
||||
static
|
||||
int find_iter_next(IsoDirIter *iter, IsoNode **node)
|
||||
{
|
||||
struct find_iter_data *data = iter->data;
|
||||
struct find_iter_data *data;
|
||||
|
||||
if (iter == NULL || node == NULL) {
|
||||
return ISO_NULL_POINTER;
|
||||
}
|
||||
data = iter->data;
|
||||
|
||||
if (data->err < 0) {
|
||||
return data->err;
|
||||
|
Loading…
Reference in New Issue
Block a user