Skip to content

Commit

Permalink
check FILE*
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Oct 11, 2023
1 parent 3b48494 commit 7304a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/multisolver_interface/SolverClp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int SolverClp::_NumberOfProblems = 0;
SolverClp::SolverClp(std::shared_ptr<SolverLogManager> log_manager)
: SolverClp() {
_fp = log_manager->log_file_ptr;
if (!log_manager) {
if (!log_manager || !_fp) {
std::cout << "Empty log file name, fallback to default behaviour"
<< std::endl;
} else {
Expand Down

0 comments on commit 7304a98

Please sign in to comment.