Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cf-check/dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,12 @@ int dump_main(int argc, const char *const *const argv)
}

Seq *files = argv_to_lmdb_files(argc, argv, offset);
if (files == NULL || SeqLength(files) == 0)
{
printf("No database files to dump.\n");
return 1;
}
Comment on lines +559 to +563

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The argv_to_lmdb_files already logs an error. Hence, there is no need to log another one here.

Suggested change
if (files == NULL || SeqLength(files) == 0)
{
printf("No database files to dump.\n");
return 1;
}
if (files == NULL || SeqLength(files) == 0)
{
return 1;
}


const int ret = dump_dbs(files, mode, tskey_filename);
SeqDestroy(files);
return ret;
Expand Down
Loading