mirror of
https://github.com/nasa/trick.git
synced 2025-06-15 05:38:19 +00:00
add else block for code clarity and to aid static analysis JITInputFile.cpp
This commit is contained in:
@ -207,12 +207,13 @@ int Trick::JITInputFile::run(std::string file_name , std::string run_function )
|
|||||||
if ( call_me == NULL ) {
|
if ( call_me == NULL ) {
|
||||||
std::string error_message = "JITInputfile could not find function " + run_function ;
|
std::string error_message = "JITInputfile could not find function " + run_function ;
|
||||||
exec_terminate_with_return(-1 , __FILE__ , __LINE__ , error_message.c_str() ) ;
|
exec_terminate_with_return(-1 , __FILE__ , __LINE__ , error_message.c_str() ) ;
|
||||||
}
|
} else {
|
||||||
|
|
||||||
// We found the function, call it!
|
// We found the function, call it!
|
||||||
ret = (*call_me)() ;
|
ret = (*call_me)() ;
|
||||||
|
|
||||||
return ret ;
|
return ret ;
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user