Skip to content

Commit

Permalink
Fix: Terminate 'fmt::v9::format_error' string pointer is null
Browse files Browse the repository at this point in the history
  • Loading branch information
DarvinHarutyunyan committed Aug 8, 2023
1 parent 4077fcf commit 463b351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_units.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2280,7 +2280,7 @@ int main(int argc, char** argv) {
auto srv_id = fork();
if (srv_id == 0) {
usleep(1); // TODO Any statement is required to be run for successful `execl` run...
std::string cli_args = fmt::format("--quiet --config {}", path());
std::string cli_args = fmt::format("--quiet --config {}", path() ? path() : "");
execl(srv_path.c_str(), srv_path.c_str(), cli_args.c_str(), (char*)(NULL));
exit(0);
}
Expand Down

0 comments on commit 463b351

Please sign in to comment.