Fix error when checking with "-t"
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 4s
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 4s
This commit is contained in:
parent
c4ff2347ff
commit
99e1a2d850
1 changed files with 2 additions and 1 deletions
|
@ -736,7 +736,8 @@ int simple_archiver_parse_archive_info(FILE *in_f, int do_extract,
|
||||||
int skip = 0;
|
int skip = 0;
|
||||||
__attribute__((cleanup(simple_archiver_hash_map_free)))
|
__attribute__((cleanup(simple_archiver_hash_map_free)))
|
||||||
SDArchiverHashMap *hash_map = NULL;
|
SDArchiverHashMap *hash_map = NULL;
|
||||||
if (state->parsed->working_files && state->parsed->working_files[0] != NULL) {
|
if (state && state->parsed->working_files &&
|
||||||
|
state->parsed->working_files[0] != NULL) {
|
||||||
hash_map = simple_archiver_hash_map_init();
|
hash_map = simple_archiver_hash_map_init();
|
||||||
for (char **iter = state->parsed->working_files; *iter != NULL; ++iter) {
|
for (char **iter = state->parsed->working_files; *iter != NULL; ++iter) {
|
||||||
int len = strlen(*iter) + 1;
|
int len = strlen(*iter) + 1;
|
||||||
|
|
Loading…
Reference in a new issue