Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Andre Sailer <[email protected]>
  • Loading branch information
andriish and andresailer authored Jan 9, 2025
1 parent 5d8caf0 commit b79da51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GaudiPluginService/src/PluginServiceV1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ namespace Gaudi {
if ( true ) {
logger().debug( std::string( "searching factories in " ) + envVar );
std::string path;
if ( search_path ) path = std::string(search_path); else path="/usr/lib64:/usr/lib:/usr/local/lib";
path = search_path ? std::string(search_path) : "/usr/lib64:/usr/lib:/usr/local/lib";
std::string::size_type pos = 0;
std::string::size_type newpos = 0;
while ( pos != std::string::npos ) {
Expand Down
2 changes: 1 addition & 1 deletion GaudiPluginService/src/PluginServiceV2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ namespace Gaudi {

std::string search_path;
const char* envPtr = std::getenv( envVar.c_str() );
if ( envPtr ) search_path = envPtr; else search_path="/usr/lib64:/usr/lib:/usr/local/lib";
search_path = envPtr ? envPtr : "/usr/lib64:/usr/lib:/usr/local/lib";
if ( search_path.empty() ) {
return;
}
Expand Down

0 comments on commit b79da51

Please sign in to comment.