Skip to content

Commit

Permalink
kdb2mt: do not abort with SIGSEGV when --src-mbox is used
Browse files Browse the repository at this point in the history
Fixes: gromox-1.36-10-gd241f9afc
References: DESK-1201
  • Loading branch information
jengelh committed Aug 21, 2023
1 parent ecbba8f commit 4adc13c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/kdb2mt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1560,7 +1560,9 @@ int main(int argc, const char **argv)
"You probably wanted to redirect output into a file or pipe.\n");
return EXIT_FAILURE;
}
ret = do_database(std::move(drv), g_srcguid != nullptr ? g_srcguid : g_srcmbox);
ret = do_database(std::move(drv), g_srcguid != nullptr ? g_srcguid :
g_srcmro != nullptr ? g_srcmro :
g_srcmbox != nullptr ? g_srcmbox : "Strange Mailbox");
} catch (const char *e) {
fprintf(stderr, "kdb2mt: Exception: %s\n", e);
return -ECANCELED;
Expand Down

0 comments on commit 4adc13c

Please sign in to comment.